From 6186117f9743a674f8f91b96bfd3a266b039ee1c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 25 May 2007 00:58:59 +0000 Subject: [PATCH] ITS#4966 valsort_modify: ignore Delete modops with no values --- servers/slapd/overlays/valsort.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/overlays/valsort.c b/servers/slapd/overlays/valsort.c index f1b82e917c..c7a7dfa5d5 100644 --- a/servers/slapd/overlays/valsort.c +++ b/servers/slapd/overlays/valsort.c @@ -447,6 +447,9 @@ valsort_modify( Operation *op, SlapReply *rs ) if ( !(vi->vi_sort & VALSORT_WEIGHTED )) continue; for (ml = op->orm_modlist; ml; ml=ml->sml_next ) { + /* Must be a Delete Attr op, so no values to consider */ + if ( !ml->sml_values ) + continue; if ( ml->sml_desc == vi->vi_ad ) break; } -- 2.39.5