From: Quanah Gibson-Mount Date: Mon, 28 Aug 2006 01:01:32 +0000 (+0000) Subject: Fix delete type modifys where no value is given to be deleted. (ITS#2612) X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~252 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3ee11b1c2ad2b877197df7d8c076f508ad264039;p=openldap Fix delete type modifys where no value is given to be deleted. (ITS#2612) Thanks to Alister Winfield for the patch. --- diff --git a/servers/slapd/back-perl/modify.c b/servers/slapd/back-perl/modify.c index a454ca0b7d..8d2b39d100 100644 --- a/servers/slapd/back-perl/modify.c +++ b/servers/slapd/back-perl/modify.c @@ -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;