mirror of
https://github.com/samba-team/samba.git
synced 2025-11-21 12:23:50 +03:00
r19732: The 'res' from ldb_search is only valid if the call returns LDB_SUCCESS.
This seems to show up (as an abort() from talloc) particularly under ldb_ildap. Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
186766e309
commit
9890af534d
@@ -111,8 +111,8 @@ static int ejs_ldbSearch(MprVarHandle eid, int argc, struct MprVar **argv)
|
||||
mpr_Return(eid, mprCreateUndefinedVar());
|
||||
} else {
|
||||
mpr_Return(eid, mprLdbArray(ldb, res->msgs, res->count, "ldb_message"));
|
||||
talloc_free(res);
|
||||
}
|
||||
talloc_free(res);
|
||||
talloc_free(tmp_ctx);
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user