From dd351c3a17a704edae15ccaa799ee7ea1efe50c4 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 7 Jan 1999 05:47:25 +0000 Subject: [PATCH] Apply fix suggested by Ben Collins pass STRING_UNKNOWN if !client_name pass STRING_UNKNOWN if !client_addr --- servers/slapd/daemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index ae28246e5f..a5531f2592 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -298,7 +298,9 @@ slapd_daemon( } #ifdef HAVE_TCPD - if(!hosts_ctl("slapd", client_name, client_addr, + if(!hosts_ctl("slapd", + client_name != NULL ? client_name : STRING_UNKNOWN, + client_addr != NULL ? client_addr : STRING_UNKNOWN, STRING_UNKNOWN)) { /* DENY ACCESS */ -- 2.39.5