mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#5563 don't die if there are no listeners when matching serverID URL.
This commit is contained in:
parent
70a964e64d
commit
82cb2a1f05
@ -1676,7 +1676,7 @@ sortval_reject:
|
|||||||
Listener **l = slapd_get_listeners();
|
Listener **l = slapd_get_listeners();
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for ( i=0; l[i]; i++ ) {
|
for ( i=0; l && l[i]; i++ ) {
|
||||||
LDAPURLDesc *lu2;
|
LDAPURLDesc *lu2;
|
||||||
int isMe = 0;
|
int isMe = 0;
|
||||||
ldap_url_parse( l[i]->sl_url.bv_val, &lu2 );
|
ldap_url_parse( l[i]->sl_url.bv_val, &lu2 );
|
||||||
|
Loading…
Reference in New Issue
Block a user