Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jun 13 13:40:56 CEST 2018 on sn-devel-144
struct ldb_reply *ares)
{
struct partition_copy_context *ac = NULL;
- int error = ares->error;
ac = talloc_get_type(
req->context,
ac->request,
ares->referral);
- case LDB_REPLY_DONE:
- error = ares->error;
+ case LDB_REPLY_DONE: {
+ int error = ares->error;
if (error == LDB_SUCCESS) {
error = partition_copy_all_callback_action(
ac->module,
ares->controls,
ares->response,
error);
+ }
default:
/* Can't happen */