Don't pass a NULL pointer to syslog(3).

Submitted by: kris
This commit is contained in:
alfred 2002-10-07 00:58:21 +00:00
parent beeea993c6
commit 6d864638d8

View File

@ -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);