Mercurial > dropbear
comparison svr-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 | 8e68dbe8687b |
children | 675f7bf3c391 |
comparison
equal
deleted
inserted
replaced
178:058cc7892636 | 179:161557a9dde8 |
---|---|
303 struct ChanSess *chansess; | 303 struct ChanSess *chansess; |
304 | 304 |
305 TRACE(("enter chansessionrequest")) | 305 TRACE(("enter chansessionrequest")) |
306 | 306 |
307 type = buf_getstring(ses.payload, &typelen); | 307 type = buf_getstring(ses.payload, &typelen); |
308 wantreply = buf_getbyte(ses.payload); | 308 wantreply = buf_getbool(ses.payload); |
309 | 309 |
310 if (typelen > MAX_NAME_LEN) { | 310 if (typelen > MAX_NAME_LEN) { |
311 TRACE(("leave chansessionrequest: type too long")) /* XXX send error?*/ | 311 TRACE(("leave chansessionrequest: type too long")) /* XXX send error?*/ |
312 goto out; | 312 goto out; |
313 } | 313 } |