]> git.sur5r.net Git - openldap/commitdiff
ITS#5563 don't die if there are no listeners when matching serverID URL.
authorRein Tollevik <rein@openldap.org>
Mon, 16 Jun 2008 14:45:30 +0000 (14:45 +0000)
committerRein Tollevik <rein@openldap.org>
Mon, 16 Jun 2008 14:45:30 +0000 (14:45 +0000)
servers/slapd/bconfig.c

index 0cc2707c1d2df22161f1bc3cda376ae3a37976a6..450cbbfc8ef84c7bf6f6e21b141151fa7a354c58 100644 (file)
@@ -1676,7 +1676,7 @@ sortval_reject:
                                                Listener **l = slapd_get_listeners();
                                                int i;
 
-                                               for ( i=0; l[i]; i++ ) {
+                                               for ( i=0; l && l[i]; i++ ) {
                                                        LDAPURLDesc *lu2;
                                                        int isMe = 0;
                                                        ldap_url_parse( l[i]->sl_url.bv_val, &lu2 );