From 64f81ee43b9d6f3b3e6284b2960caf8ecb501edc Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 24 Dec 2007 05:32:13 +0000 Subject: [PATCH] Complete prev commit --- servers/slapd/back-sock/config.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-sock/config.c b/servers/slapd/back-sock/config.c index ec998c9b0d..2a81564458 100644 --- a/servers/slapd/back-sock/config.c +++ b/servers/slapd/back-sock/config.c @@ -84,9 +84,14 @@ bs_cf_gen( ConfigArgs *c ) case BS_EXT: if ( c->valx < 0 ) { si->si_extensions = 0; + rc = 0; } else { + slap_mask_t dels = 0; + rc = verbs_to_mask( c->argc, c->argv, bs_exts, &dels ); + if ( rc == 0 ) + si->si_extensions ^= dels; } - return mask_to_verbs( bs_exts, si->si_extensions, &c->rvalue_vals ); + return rc; } } else { -- 2.39.5