From: Howard Chu Date: Fri, 9 Mar 2012 21:10:58 +0000 (-0800) Subject: ITS#7200 fix regression in b4d403ea310022ca4ffcbf31fa20ead6c754f28d X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=93d3a4104abab4803861283fb8b9ca5d864d3216;p=openldap ITS#7200 fix regression in b4d403ea310022ca4ffcbf31fa20ead6c754f28d --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index e277d2e5ef..9326185e10 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -911,7 +911,7 @@ typedef struct ServerID { } ServerID; static ServerID *sid_list; -static int sid_set; +static ServerID *sid_set; typedef struct voidList { struct voidList *vl_next; @@ -1363,6 +1363,8 @@ config_generic(ConfigArgs *c) { si; si = *sip, i++ ) { if ( c->valx == -1 || i == c->valx ) { *sip = si->si_next; + if ( sid_set == si ) + sid_set = NULL; ch_free( si ); if ( c->valx >= 0 ) break; @@ -2036,7 +2038,7 @@ sortval_reject: Debug( LDAP_DEBUG_CONFIG, "%s: SID=0x%03x\n", c->log, slap_serverID, 0 ); - sid_set = 1; + sid_set = si; } si->si_next = NULL; si->si_num = num; @@ -2059,7 +2061,7 @@ sortval_reject: "%s: SID=0x%03x (listener=%s)\n", c->log, slap_serverID, l->sl_url.bv_val ); - sid_set = 1; + sid_set = si; } } if ( c->argc > 2 )