comparison cli-chansession.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 84925eceeb13
comparison
equal deleted inserted replaced
178:058cc7892636 179:161557a9dde8
60 int wantreply; 60 int wantreply;
61 61
62 TRACE(("enter cli_chansessreq")) 62 TRACE(("enter cli_chansessreq"))
63 63
64 type = buf_getstring(ses.payload, NULL); 64 type = buf_getstring(ses.payload, NULL);
65 wantreply = buf_getbyte(ses.payload); 65 wantreply = buf_getbool(ses.payload);
66 66
67 if (strcmp(type, "exit-status") != 0) { 67 if (strcmp(type, "exit-status") != 0) {
68 TRACE(("unknown request '%s'", type)) 68 TRACE(("unknown request '%s'", type))
69 send_msg_channel_failure(channel); 69 send_msg_channel_failure(channel);
70 goto out; 70 goto out;