Mercurial > dropbear
comparison svr-session.c @ 1358:6b89eb92f872 fuzz
glaring wrapfd problems fixed
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 20 May 2017 22:47:19 +0800 |
parents | 3fdd8c5a0195 |
children | 6c92e97553f1 |
comparison
equal
deleted
inserted
replaced
1357:08f4fa4dc6a0 | 1358:6b89eb92f872 |
---|---|
243 | 243 |
244 /* called when the remote side closes the connection */ | 244 /* called when the remote side closes the connection */ |
245 static void svr_remoteclosed() { | 245 static void svr_remoteclosed() { |
246 | 246 |
247 m_close(ses.sock_in); | 247 m_close(ses.sock_in); |
248 m_close(ses.sock_out); | 248 if (ses.sock_in != ses.sock_out) { |
249 m_close(ses.sock_out); | |
250 } | |
249 ses.sock_in = -1; | 251 ses.sock_in = -1; |
250 ses.sock_out = -1; | 252 ses.sock_out = -1; |
251 dropbear_close("Exited normally"); | 253 dropbear_close("Exited normally"); |
252 | 254 |
253 } | 255 } |