]> git.sur5r.net Git - openldap/commitdiff
ITS#8616 don't check for existing value when deleting values
authorHoward Chu <hyc@openldap.org>
Thu, 24 May 2018 16:51:50 +0000 (17:51 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 24 May 2018 16:53:10 +0000 (17:53 +0100)
servers/slapd/overlays/syncprov.c

index 160b57a28990b56f2d8427bb13ca43c54fad3232..d521ff97794ada722dc250f6e3f5e369f4fff3ec 100644 (file)
@@ -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;