]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
wb_queryuser: explain why wb_parent_idmap_setup_send/recv is not needed
authorStefan Metzmacher <metze@samba.org>
Fri, 11 Sep 2020 11:52:17 +0000 (13:52 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Oct 2020 03:25:36 +0000 (03:25 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14539

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/winbindd/wb_queryuser.c

index 2e36643454b7f79f50ecb734f2d0a679ce737b0f..9db51909c02c9c88ba5b0bb9ca862e5073af532f 100644 (file)
@@ -138,6 +138,11 @@ static void wb_queryuser_got_uid(struct tevent_req *subreq)
                return;
        }
 
+       /*
+        * Note wb_sids2xids_send/recv was called before,
+        * so we're sure that wb_parent_idmap_setup_send/recv
+        * was already called.
+        */
        child_binding_handle = idmap_child_handle();
        subreq = dcerpc_wbint_GetNssInfo_send(
                state, state->ev, child_binding_handle, info);
@@ -185,6 +190,11 @@ static void wb_queryuser_got_domain(struct tevent_req *subreq)
                return;
        }
 
+       /*
+        * Note wb_sids2xids_send/recv was called before,
+        * so we're sure that wb_parent_idmap_setup_send/recv
+        * was already called.
+        */
        child_binding_handle = idmap_child_handle();
        subreq = dcerpc_wbint_GetNssInfo_send(
                state, state->ev, child_binding_handle, info);
@@ -284,6 +294,11 @@ static void wb_queryuser_got_dc(struct tevent_req *subreq)
                return;
        }
 
+       /*
+        * Note wb_sids2xids_send/recv was called before,
+        * so we're sure that wb_parent_idmap_setup_send/recv
+        * was already called.
+        */
        child_binding_handle = idmap_child_handle();
        subreq = dcerpc_wbint_GetNssInfo_send(
                state, state->ev, child_binding_handle, info);