sock: in listen_sock(), add a log message for when bind() has failed
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 947e255d19
)
This commit is contained in:
parent
04cc18d0f8
commit
5608382be9
@ -214,6 +214,8 @@ int listen_sock (const char *addr, uint16_t port, vector_t listen_fds)
|
||||
}
|
||||
|
||||
if (bind(listenfd, rp->ai_addr, rp->ai_addrlen) != 0) {
|
||||
log_message (LOG_ERR,
|
||||
"bind failed: %s", strerror (errno));
|
||||
close (listenfd);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user