summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-02-03 13:57:35 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-02-03 13:57:35 +0000
commit16517e67603787b9c11c6feeb779b3edb0597ed2 (patch)
tree4ccc4ff7c4b46ae81ae357990ccc55c137a4182b /dbutil.c
parentd2f292b3adec9bdb2bbb221b1d05f13f3da21be7 (diff)
Fix failure-handling in dropbear_listen() when errstring is unset
(this codepath isn't used) --HG-- extra : convert_revision : d29f3665a91c4bf71a2d8bd99b33348a0317e605
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbutil.c b/dbutil.c
index 15f51ba..e096797 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -286,9 +286,9 @@ int dropbear_listen(const char* address, const char* port,
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))