FIX8 SQ auth3 with 4 legs results in DCERPC_NCA_S_PROTO_ERROR => no
authorStefan Metzmacher <metze@samba.org>
Fri, 13 Nov 2020 02:44:56 +0000 (03:44 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Jan 2024 10:14:10 +0000 (11:14 +0100)
fault, just a delayed one

librpc/rpc/dcesrv_auth.c

index d7deff1f65dc29b6fdf66e14ab62b29aeee95e18..a09783c4fb047ceb5e0f342c789ca42e35402bc9 100644 (file)
@@ -392,8 +392,7 @@ NTSTATUS dcesrv_auth_complete(struct dcesrv_call_state *call, NTSTATUS status)
        if (call->out_auth_info->credentials.length != 0) {
                DEBUG(4, ("GENSEC produced output token (len=%zu) at %s\n",
                          call->out_auth_info->credentials.length, pdu));
-               call->fault_code = DCERPC_NCA_S_PROTO_ERROR;
-               return NT_STATUS_RPC_PROTOCOL_ERROR;
+               return NT_STATUS_RPC_SEC_PKG_ERROR;
        }
 
        return NT_STATUS_OK;