mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +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
2
dbutil.c
2
dbutil.c
@ -286,10 +286,10 @@ int dropbear_listen(const char* address, const char* port,
|
|||||||
len = 20 + strlen(strerror(err));
|
len = 20 + strlen(strerror(err));
|
||||||
*errstring = (char*)m_malloc(len);
|
*errstring = (char*)m_malloc(len);
|
||||||
snprintf(*errstring, len, "Error listening: %s", strerror(err));
|
snprintf(*errstring, len, "Error listening: %s", strerror(err));
|
||||||
|
}
|
||||||
TRACE(("leave dropbear_listen: failure, %s", strerror(err)))
|
TRACE(("leave dropbear_listen: failure, %s", strerror(err)))
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
TRACE(("leave dropbear_listen: success, %d socks bound", nsock))
|
TRACE(("leave dropbear_listen: success, %d socks bound", nsock))
|
||||||
return nsock;
|
return nsock;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user