]> git.sur5r.net Git - openldap/commitdiff
Apply fix suggested by Ben Collins <bmc@visi.net>
authorKurt Zeilenga <kurt@openldap.org>
Thu, 7 Jan 1999 05:47:25 +0000 (05:47 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 7 Jan 1999 05:47:25 +0000 (05:47 +0000)
pass STRING_UNKNOWN if !client_name
pass STRING_UNKNOWN if !client_addr

servers/slapd/daemon.c

index ae28246e5facf868377b9397b784c700801eae53..a5531f25921b577c5395d7322cb106a793b1184b 100644 (file)
@@ -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 */