From 3ee11b1c2ad2b877197df7d8c076f508ad264039 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Mon, 28 Aug 2006 01:01:32 +0000 Subject: [PATCH] Fix delete type modifys where no value is given to be deleted. (ITS#2612) Thanks to Alister Winfield for the patch. --- servers/slapd/back-perl/modify.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5