ITS#5563 don't die if there are no listeners when matching serverID URL.

This commit is contained in:
Rein Tollevik 2008-06-16 14:45:30 +00:00
parent 70a964e64d
commit 82cb2a1f05

View 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 );