s3:auth Add error paths for invalid password_state values
[abartlet/samba.git/.git] / source3 / auth / auth_server.c
index 76cafc6d6900dd1878309794caafb636d2a2744a..b5954e6a4df1cea6617a1df03c1a08c6747c9795 100644 (file)
@@ -410,6 +410,9 @@ use this machine as the password server.\n"));
                        (char *)user_info->password.response.nt.data,
                        user_info->password.response.nt.length,
                        user_info->mapped.domain_name);
+       default:
+               DEBUG(0,("user_info constructed for user '%s' was invalid - password_state=%u invalid.\n",user_info->mapped.account_name, user_info->password_state));
+               nt_status = NT_STATUS_INTERNAL_ERROR;
        }
 
        if (!NT_STATUS_IS_OK(nt_status)) {