]> git.sur5r.net Git - openldap/commitdiff
ITS#2442, ITS#2438 same check for slapd_slp_reg()
authorHoward Chu <hyc@openldap.org>
Sat, 12 Apr 2003 08:36:35 +0000 (08:36 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 12 Apr 2003 08:36:35 +0000 (08:36 +0000)
servers/slapd/daemon.c

index 9c70258d5218200c1bc9e00b53e8d30037c3554b..e42565af46a7fc541a696d07c6ec4d69ffcafb7d 100644 (file)
@@ -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 ||