Mercurial > dropbear
comparison dbutil.c @ 415:8b9aba1d5fa4 channel-fix
merge of '73fe066c5d9e2395354ba74756124d45c978a04d'
and 'f5014cc84558f1e8eba42dbecf9f72f94bfe6134'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 06 Feb 2007 16:00:18 +0000 |
parents | b895f91c2ee6 |
children | 1afa503e33f5 |
comparison
equal
deleted
inserted
replaced
414:c53a26c430e5 | 415:8b9aba1d5fa4 |
---|---|
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 } |