From 6d864638d8e8efb3905278e8d6cb1b7eb3797ff6 Mon Sep 17 00:00:00 2001 From: alfred Date: Mon, 7 Oct 2002 00:58:21 +0000 Subject: Don't pass a NULL pointer to syslog(3). Submitted by: kris --- usr.sbin/rpcbind/rpcbind.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.sbin/rpcbind/rpcbind.c') 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); -- cgit v1.1