From a01d9f961d01c09e71c20d4c02b0d9c8ac67c569 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 11 Apr 2007 20:31:49 +0000 Subject: [PATCH] fix no-op crasher (ITS#4925) --- servers/slapd/back-bdb/modify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/back-bdb/modify.c b/servers/slapd/back-bdb/modify.c index 408ad24f6a..67f3b723ce 100644 --- a/servers/slapd/back-bdb/modify.c +++ b/servers/slapd/back-bdb/modify.c @@ -588,6 +588,8 @@ retry: /* transaction retry */ } else { rs->sr_err = LDAP_X_NO_OPERATION; ltid = NULL; + /* Only free attrs if they were dup'd. */ + if ( dummy.e_attrs == e->e_attrs ) dummy.e_attrs = NULL; goto return_results; } } else { -- 2.39.5