diff 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
line wrap: on
line diff
--- a/svr-session.c	Sat May 20 13:23:16 2017 +0800
+++ b/svr-session.c	Sat May 20 22:47:19 2017 +0800
@@ -245,7 +245,9 @@
 static void svr_remoteclosed() {
 
 	m_close(ses.sock_in);
-	m_close(ses.sock_out);
+	if (ses.sock_in != ses.sock_out) {
+		m_close(ses.sock_out);
+	}
 	ses.sock_in = -1;
 	ses.sock_out = -1;
 	dropbear_close("Exited normally");