mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
Fix failure-handling in dropbear_listen() when errstring is unset
(this codepath isn't used) --HG-- extra : convert_revision : d29f3665a91c4bf71a2d8bd99b33348a0317e605
This commit is contained in:
parent
d2f292b3ad
commit
16517e6760
4
dbutil.c
4
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))
|
||||
|
Loading…
Reference in New Issue
Block a user