diff options
author | alfred <alfred@FreeBSD.org> | 2002-10-07 00:58:21 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-10-07 00:58:21 +0000 |
commit | 6d864638d8e8efb3905278e8d6cb1b7eb3797ff6 (patch) | |
tree | d02984c56219eb0e7c06919c3e1246bbfcc83b72 /usr.sbin/rpcbind | |
parent | beeea993c6d4c730a94a3de2ab11f1772bd0c3db (diff) | |
download | FreeBSD-src-6d864638d8e8efb3905278e8d6cb1b7eb3797ff6.zip FreeBSD-src-6d864638d8e8efb3905278e8d6cb1b7eb3797ff6.tar.gz |
Don't pass a NULL pointer to syslog(3).
Submitted by: kris
Diffstat (limited to 'usr.sbin/rpcbind')
-rw-r--r-- | usr.sbin/rpcbind/rpcbind.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/rpcbind/rpcbind.c b/usr.sbin/rpcbind/rpcbind.c index 3f60941..2c561f9 100644 --- a/usr.sbin/rpcbind/rpcbind.c +++ b/usr.sbin/rpcbind/rpcbind.c @@ -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); |