]> git.sur5r.net Git - openldap/commitdiff
Fix delete type modifys where no value is given to be deleted. (ITS#2612)
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 28 Aug 2006 01:01:32 +0000 (01:01 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 28 Aug 2006 01:01:32 +0000 (01:01 +0000)
Thanks to Alister Winfield for the patch.

servers/slapd/back-perl/modify.c

index a454ca0b7d2489199fe9f03cd3cb5bcccd2674f3..8d2b39d10042eac28d0f2b528ef0c7f00fcdf2aa 100644 (file)
@@ -63,6 +63,11 @@ perl_back_modify(
                        {
                                XPUSHs(sv_2mortal(newSVpv( mods->sm_values[i].bv_val, 0 )));
                        }
+
+                       // Fix delete attrib without value.
+                       if ( i == 0) {
+                               XPUSHs(sv_newmortal());
+                       }
                }
 
                PUTBACK;