projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SC in "finding an actual bug" shocker! Set the port number before passing
[u/mdw/putty]
/
x11fwd.c
diff --git
a/x11fwd.c
b/x11fwd.c
index
d21441b
..
5a83db2
100644
(file)
--- a/
x11fwd.c
+++ b/
x11fwd.c
@@
-200,6
+200,8
@@
char *x11_init(Socket * s, char *display, void *c, void *auth)
strcpy(host, "localhost");
}
+ port = 6000 + displaynum;
+
/*
* Try to find host.
*/
@@
-207,8
+209,6
@@
char *x11_init(Socket * s, char *display, void *c, void *auth)
if ((err = sk_addr_error(addr)) != NULL)
return err;
- port = 6000 + displaynum;
-
/*
* Open socket.
*/