mirror of
https://github.com/samba-team/samba.git
synced 2025-02-09 09:57:48 +03:00
s4-dsdb: Fix a use after free segfault.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Tue Nov 12 19:22:28 CET 2013 on sn-devel-104
This commit is contained in:
parent
4cf8f10500
commit
744abc8822
@ -1373,6 +1373,7 @@ static void rootdse_fsmo_transfer_callback(struct tevent_req *treq)
|
||||
int ret;
|
||||
struct ldb_request *req = fsmo->req;
|
||||
struct ldb_context *ldb = fsmo->ldb;
|
||||
struct ldb_module *module = fsmo->module;
|
||||
|
||||
status = dcerpc_drepl_takeFSMORole_recv(treq, fsmo, &werr);
|
||||
talloc_free(fsmo);
|
||||
@ -1382,7 +1383,7 @@ static void rootdse_fsmo_transfer_callback(struct tevent_req *treq)
|
||||
* Now that it is failed, start the transaction up
|
||||
* again so the wrappers can close it without additional error
|
||||
*/
|
||||
ldb_next_start_trans(fsmo->module);
|
||||
ldb_next_start_trans(module);
|
||||
ldb_module_done(req, NULL, NULL, LDB_ERR_UNAVAILABLE);
|
||||
return;
|
||||
}
|
||||
@ -1392,7 +1393,7 @@ static void rootdse_fsmo_transfer_callback(struct tevent_req *treq)
|
||||
* Now that it is failed, start the transaction up
|
||||
* again so the wrappers can close it without additional error
|
||||
*/
|
||||
ldb_next_start_trans(fsmo->module);
|
||||
ldb_next_start_trans(module);
|
||||
ldb_module_done(req, NULL, NULL, LDB_ERR_UNAVAILABLE);
|
||||
return;
|
||||
}
|
||||
@ -1401,7 +1402,7 @@ static void rootdse_fsmo_transfer_callback(struct tevent_req *treq)
|
||||
* Now that it is done, start the transaction up again so the
|
||||
* wrappers can close it without error
|
||||
*/
|
||||
ret = ldb_next_start_trans(fsmo->module);
|
||||
ret = ldb_next_start_trans(module);
|
||||
ldb_module_done(req, NULL, NULL, ret);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user