s4-rpc_server: Correct comment about where the current iface can be found
authorAndrew Bartlett <abartlet@samba.org>
Tue, 21 Feb 2017 03:22:07 +0000 (16:22 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 Mar 2017 00:37:26 +0000 (02:37 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-by: Gary Lockyer <gary@catalyst.net.nz>
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
source4/rpc_server/dcerpc_server.c

index f7ec2106b98116d793850717833b04ba76bf1657..3663a2b4be43f6391211073fbd9b23ae07d45f59 100644 (file)
@@ -939,9 +939,12 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
        }
 
        /*
-        * At this point we know which interface (eg netlogon, lsa,
-        * drsuapi) the caller requested.  This is available on
-        * call->conntext->iface.
+        * At this point we still don't know which interface (eg
+        * netlogon, lsa, drsuapi) the caller requested in this bind!
+        * The most recently added context is available as the first
+        * element in the linked list at call->conn->contexts, that is
+        * call->conn->contexts->iface, but they may not have
+        * requested one at all!
         */
 
        if ((call->pkt.pfc_flags & DCERPC_PFC_FLAG_CONC_MPX) &&