]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9408 fix vrfilter double-free
authorHoward Chu <hyc@openldap.org>
Sat, 28 Nov 2020 15:54:17 +0000 (15:54 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 28 Nov 2020 15:54:17 +0000 (15:54 +0000)
servers/slapd/controls.c

index 56c3a211bed6211b7d91b1e77aa76f14b2a383cf..43652d32c9ed99734836f6825013d2ab95c112e1 100644 (file)
@@ -1628,7 +1628,10 @@ static int parseValuesReturnFilter (
                } else {
                        send_ldap_result( op, rs );
                }
-               if( op->o_vrFilter != NULL) vrFilter_free( op, op->o_vrFilter ); 
+               if( op->o_vrFilter != NULL) {
+                       vrFilter_free( op, op->o_vrFilter );
+                       op->o_vrFilter = NULL;
+               }
        }
 #ifdef LDAP_DEBUG
        else {