ldap/servers/slapd/back-ldbm/ldbm_modify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit f5930b89235b7a826ff56372333857ac270898f6 Author: Nathan Kinder nkinder@redhat.com Date: Mon Feb 27 15:18:50 2012 -0800
ticket 211 - Use of uninitialized variables in ldbm_back_modify()
The previous patch for ticket 211 introduced an unitialized variable that could up being freed. This would cause ns-slapd to crash.
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_modify.c b/ldap/servers/slapd/back-ldbm/ldbm_modify.c index 082802f..5c295ec 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_modify.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_modify.c @@ -195,8 +195,8 @@ ldbm_back_modify( Slapi_PBlock *pb ) struct ldbminfo *li; struct backentry *e = NULL, *ec = NULL, *original_entry = NULL; Slapi_Entry *postentry = NULL; - LDAPMod **mods; - LDAPMod **mods_original; + LDAPMod **mods = NULL; + LDAPMod **mods_original = NULL; Slapi_Mods smods = {0}; back_txn txn; back_txnid parent_txn;
389-commits@lists.fedoraproject.org