Don't pass a NULL pointer to syslog(3).
Submitted by: kris
This commit is contained in:
parent
beeea993c6
commit
6d864638d8
@ -366,6 +366,7 @@ init_transport(struct netconfig *nconf)
|
||||
oldmask = umask(S_IXUSR|S_IXGRP|S_IXOTH);
|
||||
if (bind(fd, sa, addrlen) != 0) {
|
||||
syslog(LOG_ERR, "cannot bind %s on %s: %m",
|
||||
(hosts[nhostsbak] == NULL) ? "*" :
|
||||
hosts[nhostsbak], nconf->nc_netid);
|
||||
if (res != NULL)
|
||||
freeaddrinfo(res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user