From e9fb8a0e9d617df7a36bfe820823530d2ff4e417 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Mon, 7 Oct 2002 00:58:21 +0000 Subject: [PATCH] Don't pass a NULL pointer to syslog(3). Submitted by: kris --- usr.sbin/rpcbind/rpcbind.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/rpcbind/rpcbind.c b/usr.sbin/rpcbind/rpcbind.c index 3f60941cb78..2c561f93d6f 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);