summaryrefslogtreecommitdiff
path: root/source3/rpc_server/dcesrv_spnego.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_server/dcesrv_spnego.c')
-rw-r--r--source3/rpc_server/dcesrv_spnego.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/dcesrv_spnego.c b/source3/rpc_server/dcesrv_spnego.c
index 4686534a2e..fb758e338b 100644
--- a/source3/rpc_server/dcesrv_spnego.c
+++ b/source3/rpc_server/dcesrv_spnego.c
@@ -230,7 +230,7 @@ NTSTATUS spnego_server_auth_start(TALLOC_CTX *mem_ctx,
ret = spnego_parse_negTokenInit(sp_ctx, *spnego_in,
sp_ctx->oid_list, NULL, &token_in);
- if (!ret) {
+ if (!ret || sp_ctx->oid_list[0] == NULL) {
DEBUG(3, ("Invalid SPNEGO message\n"));
status = NT_STATUS_INVALID_PARAMETER;
goto done;