mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s4-ldb: fixed valgrind error: ares can be freed by callback
This commit is contained in:
parent
8eaed073a7
commit
335af02218
@ -829,10 +829,7 @@ int ldb_module_done(struct ldb_request *req,
|
|||||||
ldb_debug_end(req->handle->ldb, LDB_DEBUG_TRACE);
|
ldb_debug_end(req->handle->ldb, LDB_DEBUG_TRACE);
|
||||||
}
|
}
|
||||||
|
|
||||||
req->callback(req, ares);
|
return req->callback(req, ares);
|
||||||
/* returning ares->error here allows the callback routines in
|
|
||||||
modules to override the error code */
|
|
||||||
return ares->error;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* to be used *only* in modules init functions.
|
/* to be used *only* in modules init functions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user