Revert "FIX8 auth3 with 4 legs results in DCERPC_NCA_S_PROTO_ERROR"
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Jan 2024 16:04:01 +0000 (17:04 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 8 Feb 2024 15:39:20 +0000 (16:39 +0100)
This reverts commit 1d668508be98d668aedc9e25d95c15697c203d1d.

librpc/rpc/dcesrv_auth.c

index 3bed7d3200f5fde5569fe6111674bc2afbfee301..0ca09d2c07eba4f885cd27bcd9bb0d57210fb5f7 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;