s3-netlogon: fix default case when _netr_LogonSamLogon is called from other opcodes.
[ira/wip.git] / source3 / rpc_server / srv_netlog_nt.c
index 4131fa88eb7121602e637b076cfdc51a82da17b8..01b2398e8637944c3c27248d51b70bc66ca0d99a 100644 (file)
@@ -825,9 +825,11 @@ NTSTATUS _netr_LogonSamLogon(pipes_struct *p,
                        fn = "_netr_LogonSamLogon";
                        break;
                case NDR_NETR_LOGONSAMLOGONEX:
+                       process_creds = false;
                        fn = "_netr_LogonSamLogonEx";
+                       break;
                default:
-                       process_creds = false;
+                       return NT_STATUS_INTERNAL_ERROR;
        }
 
        if ( (lp_server_schannel() == True) && (p->auth.auth_type != PIPE_AUTH_TYPE_SCHANNEL) ) {