From: Pierangelo Masarati Date: Wed, 11 Apr 2007 20:31:49 +0000 (+0000) Subject: fix no-op crasher (ITS#4925) X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~534 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a01d9f961d01c09e71c20d4c02b0d9c8ac67c569;p=openldap fix no-op crasher (ITS#4925) --- 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 {