1
0
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:
Andrew Tridgell 2009-12-30 21:36:31 +11:00
parent 8eaed073a7
commit 335af02218

View File

@ -829,10 +829,7 @@ int ldb_module_done(struct ldb_request *req,
ldb_debug_end(req->handle->ldb, LDB_DEBUG_TRACE);
}
req->callback(req, ares);
/* returning ares->error here allows the callback routines in
modules to override the error code */
return ares->error;
return req->callback(req, ares);
}
/* to be used *only* in modules init functions.