ldap/servers/plugins/dna/dna.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 6f8680a94aa721633a18148b44bd28baa72cd4ae
Author: Nathan Kinder <nkinder(a)redhat.com>
Date: Wed Mar 7 06:49:13 2012 -0800
coverity 12563 Read from pointer after free (fix 2)
The previous commit for coverity issue 12563 fixed the dna_pre_op()
function to avoid reading the target of a freed pointer. This same
fix needs to be made to dna_be_txn_pre_op().
diff --git a/ldap/servers/plugins/dna/dna.c b/ldap/servers/plugins/dna/dna.c
index 84f2a7a..80f722b 100644
--- a/ldap/servers/plugins/dna/dna.c
+++ b/ldap/servers/plugins/dna/dna.c
@@ -3481,6 +3481,7 @@ static int dna_be_txn_pre_op(Slapi_PBlock *pb, int modtype)
slapi_ch_free_string(&value);
slapi_ch_free_string(&new_value);
slapi_ch_array_free(types_to_generate);
+ types_to_generate = NULL;
} else if (types_to_generate) {
slapi_ch_free((void **)&types_to_generate);
}
Show replies by date