From 82cb2a1f05b5f895b789461052e4e9a2a6a3f64a Mon Sep 17 00:00:00 2001 From: Rein Tollevik Date: Mon, 16 Jun 2008 14:45:30 +0000 Subject: [PATCH] ITS#5563 don't die if there are no listeners when matching serverID URL. --- servers/slapd/bconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 0cc2707c1d..450cbbfc8e 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -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 ); -- 2.39.5