From 0f2eab27ce104de20bc0eb4f6b05196111f07c06 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 12 Apr 2003 08:36:35 +0000 Subject: [PATCH] ITS#2442, ITS#2438 same check for slapd_slp_reg() --- servers/slapd/daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 9c70258d52..e42565af46 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -155,6 +155,8 @@ void slapd_slp_regreport( void slapd_slp_reg() { int i; + if( slapd_srvurls == NULL ) return; + for( i=0; slapd_srvurls[i] != NULL; i++ ) { if( strncmp( slapd_srvurls[i], LDAP_SRVTYPE_PREFIX, sizeof( LDAP_SRVTYPE_PREFIX ) - 1 ) == 0 || -- 2.39.5