1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s3:winbind: Move tevent_req_create() before debug macros to have the right call depth

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15287

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Pavel Filipenský 2022-09-12 16:06:09 +02:00 committed by Andreas Schneider
parent 4b6e8e1c11
commit 51d559d8f4
2 changed files with 9 additions and 7 deletions

View File

@ -116,6 +116,11 @@ struct tevent_req *wb_lookupsids_send(TALLOC_CTX *mem_ctx,
struct wb_lookupsids_state *state;
uint32_t i;
req = tevent_req_create(mem_ctx, &state, struct wb_lookupsids_state);
if (req == NULL) {
return NULL;
}
D_INFO("WB command lookupsids start.\nLooking up %"PRIu32" SID(s)\n",
num_sids);
if (CHECK_DEBUGLVL(DBGLVL_INFO)) {
@ -125,10 +130,7 @@ struct tevent_req *wb_lookupsids_send(TALLOC_CTX *mem_ctx,
i, dom_sid_str_buf(&sids[i], &buf));
}
}
req = tevent_req_create(mem_ctx, &state, struct wb_lookupsids_state);
if (req == NULL) {
return NULL;
}
state->ev = ev;
state->sids = sids;
state->num_sids = num_sids;

View File

@ -81,15 +81,15 @@ struct tevent_req *wb_sids2xids_send(TALLOC_CTX *mem_ctx,
uint32_t i;
uint32_t num_valid = 0;
D_INFO("WB command sids2xids start.\n"
"Resolving %"PRIu32" SID(s).\n", num_sids);
req = tevent_req_create(mem_ctx, &state,
struct wb_sids2xids_state);
if (req == NULL) {
return NULL;
}
D_INFO("WB command sids2xids start.\n"
"Resolving %"PRIu32" SID(s).\n", num_sids);
state->ev = ev;
state->num_sids = num_sids;