"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/ldb/common/ldb.c" between
samba-4.12.3.tar.gz and samba-4.12.5.tar.gz

About: Samba is the standard Windows interoperability suite of programs for Linux and Unix providing secure, stable and fast file and print services for all clients using the SMB/CIFS protocol. 4.12 series.

ldb.c  (samba-4.12.3):ldb.c  (samba-4.12.5)
skipping to change at line 1013 skipping to change at line 1013
} }
return 0; return 0;
} }
static int ldb_lock_backend_callback(struct ldb_request *req, static int ldb_lock_backend_callback(struct ldb_request *req,
struct ldb_reply *ares) struct ldb_reply *ares)
{ {
struct ldb_db_lock_context *lock_context; struct ldb_db_lock_context *lock_context;
int ret; int ret;
if (req->context == NULL) {
/*
* The usual way to get here is to ignore the return codes
* and continuing processing after an error.
*/
abort();
}
lock_context = talloc_get_type(req->context, lock_context = talloc_get_type(req->context,
struct ldb_db_lock_context); struct ldb_db_lock_context);
if (!ares) { if (!ares) {
return ldb_module_done(lock_context->req, NULL, NULL, return ldb_module_done(lock_context->req, NULL, NULL,
LDB_ERR_OPERATIONS_ERROR); LDB_ERR_OPERATIONS_ERROR);
} }
if (ares->error != LDB_SUCCESS || ares->type == LDB_REPLY_DONE) { if (ares->error != LDB_SUCCESS || ares->type == LDB_REPLY_DONE) {
ret = ldb_module_done(lock_context->req, ares->controls, ret = ldb_module_done(lock_context->req, ares->controls,
ares->response, ares->error); ares->response, ares->error);
/* /*
* If this is a LDB_REPLY_DONE or an error, unlock the * If this is a LDB_REPLY_DONE or an error, unlock the
* DB by calling the destructor on this context * DB by calling the destructor on this context
*/ */
talloc_free(lock_context); TALLOC_FREE(req->context);
return ret; return ret;
} }
/* Otherwise pass on the callback */ /* Otherwise pass on the callback */
switch (ares->type) { switch (ares->type) {
case LDB_REPLY_ENTRY: case LDB_REPLY_ENTRY:
return ldb_module_send_entry(lock_context->req, ares->message, return ldb_module_send_entry(lock_context->req, ares->message,
ares->controls); ares->controls);
case LDB_REPLY_REFERRAL: case LDB_REPLY_REFERRAL:
 End of changes. 2 change blocks. 
1 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)