Mercurial > dropbear
changeset 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 | ea0929224294 |
children | 0e69e948caba |
files | dbutil.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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))