From: Howard Chu Date: Thu, 24 May 2018 16:51:50 +0000 (+0100) Subject: ITS#8616 don't check for existing value when deleting values X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9069cbe543d079e9d7f55162decb8e732fc32338;p=openldap ITS#8616 don't check for existing value when deleting values --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 160b57a289..d521ff9779 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -3039,22 +3039,13 @@ sp_cf_gen(ConfigArgs *c) si->si_chktime = 0; break; case SP_SESSL: - if ( si->si_logs ) - si->si_logs->sl_size = 0; - else - rc = LDAP_NO_SUCH_ATTRIBUTE; + si->si_logs->sl_size = 0; break; case SP_NOPRES: - if ( si->si_nopres ) - si->si_nopres = 0; - else - rc = LDAP_NO_SUCH_ATTRIBUTE; + si->si_nopres = 0; break; case SP_USEHINT: - if ( si->si_usehint ) - si->si_usehint = 0; - else - rc = LDAP_NO_SUCH_ATTRIBUTE; + si->si_usehint = 0; break; } return rc;