comparison svr-x11fwd.c @ 179:161557a9dde8

* fix longstanding bug with connections being closed on failure to connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying
author Matt Johnston <matt@ucc.asn.au>
date Sun, 13 Mar 2005 13:58:14 +0000
parents 0cfba3034be5
children 740e782679be 52a644e7b8e1
comparison
equal deleted inserted replaced
178:058cc7892636 179:161557a9dde8
50 /* we already have an x11 connection */ 50 /* we already have an x11 connection */
51 if (chansess->x11listener != NULL) { 51 if (chansess->x11listener != NULL) {
52 return DROPBEAR_FAILURE; 52 return DROPBEAR_FAILURE;
53 } 53 }
54 54
55 chansess->x11singleconn = buf_getbyte(ses.payload); 55 chansess->x11singleconn = buf_getbool(ses.payload);
56 chansess->x11authprot = buf_getstring(ses.payload, NULL); 56 chansess->x11authprot = buf_getstring(ses.payload, NULL);
57 chansess->x11authcookie = buf_getstring(ses.payload, NULL); 57 chansess->x11authcookie = buf_getstring(ses.payload, NULL);
58 chansess->x11screennum = buf_getint(ses.payload); 58 chansess->x11screennum = buf_getint(ses.payload);
59 59
60 /* create listening socket */ 60 /* create listening socket */