Mercurial > dropbear
comparison dbutil.c @ 410:b895f91c2ee6
merge of 'b1dd3b94e60a07a176dba2b035ac79968595990a'
and 'bcb33fce2fad01a7626598209d43af3571bd86f0'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 04 Feb 2007 10:32:59 +0000 |
parents | e81d3bc1dc78 28b10e93685c |
children | 1afa503e33f5 |
comparison
equal
deleted
inserted
replaced
399:a707e6148060 | 410:b895f91c2ee6 |
---|---|
284 if (errstring != NULL && *errstring == NULL) { | 284 if (errstring != NULL && *errstring == NULL) { |
285 int len; | 285 int len; |
286 len = 20 + strlen(strerror(err)); | 286 len = 20 + strlen(strerror(err)); |
287 *errstring = (char*)m_malloc(len); | 287 *errstring = (char*)m_malloc(len); |
288 snprintf(*errstring, len, "Error listening: %s", strerror(err)); | 288 snprintf(*errstring, len, "Error listening: %s", strerror(err)); |
289 TRACE(("leave dropbear_listen: failure, %s", strerror(err))) | 289 } |
290 return -1; | 290 TRACE(("leave dropbear_listen: failure, %s", strerror(err))) |
291 } | 291 return -1; |
292 } | 292 } |
293 | 293 |
294 TRACE(("leave dropbear_listen: success, %d socks bound", nsock)) | 294 TRACE(("leave dropbear_listen: success, %d socks bound", nsock)) |
295 return nsock; | 295 return nsock; |
296 } | 296 } |