]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2020-25717 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)
committerJule Anger <janger@samba.org>
Mon, 8 Nov 2021 09:52:09 +0000 (10:52 +0100)
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>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14556

(cherry picked from commit 82fd07793f065e150729848566e7c30f4f4d472e)

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);