diff dbutil.c @ 883:ff597bf2cfb0

DROPBEAR_CLI_AUTH_IMMEDIATE fixed, now enabled by default
author Matt Johnston <matt@ucc.asn.au>
date Fri, 17 Jan 2014 21:39:27 +0800
parents aa689d140928
children 7cd89d4e0335
line wrap: on
line diff
--- a/dbutil.c	Wed Dec 11 21:50:33 2013 +0800
+++ b/dbutil.c	Fri Jan 17 21:39:27 2014 +0800
@@ -812,6 +812,10 @@
 /* make sure that the socket closes */
 void m_close(int fd) {
 
+	if (fd == -1) {
+		return;
+	}
+
 	int val;
 	do {
 		val = close(fd);