diff dbutil.c @ 408:28b10e93685c

Fix failure-handling in dropbear_listen() when errstring is unset (this codepath isn't used)
author Matt Johnston <matt@ucc.asn.au>
date Sat, 03 Feb 2007 13:57:35 +0000
parents 044bc108b9b3
children b895f91c2ee6
line wrap: on
line diff
--- a/dbutil.c	Sat Feb 03 13:50:47 2007 +0000
+++ b/dbutil.c	Sat Feb 03 13:57:35 2007 +0000
@@ -286,9 +286,9 @@
 			len = 20 + strlen(strerror(err));
 			*errstring = (char*)m_malloc(len);
 			snprintf(*errstring, len, "Error listening: %s", strerror(err));
-			TRACE(("leave dropbear_listen: failure, %s", strerror(err)))
-			return -1;
 		}
+		TRACE(("leave dropbear_listen: failure, %s", strerror(err)))
+		return -1;
 	}
 
 	TRACE(("leave dropbear_listen: success, %d socks bound", nsock))