From: Howard Chu Date: Sat, 12 Apr 2003 08:36:35 +0000 (+0000) Subject: ITS#2442, ITS#2438 same check for slapd_slp_reg() X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~381 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0f2eab27ce104de20bc0eb4f6b05196111f07c06;p=openldap ITS#2442, ITS#2438 same check for slapd_slp_reg() --- 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 ||