From 4f8ef205ac05cfb445e1252b02faccf9f442f1c3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 4 May 2010 23:44:50 +1000 Subject: s3:auth Add error paths for invalid password_state values Signed-off-by: Andrew Tridgell --- source3/auth/check_samsec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/auth/check_samsec.c') diff --git a/source3/auth/check_samsec.c b/source3/auth/check_samsec.c index 46e05aa0c2..3b2f471812 100644 --- a/source3/auth/check_samsec.c +++ b/source3/auth/check_samsec.c @@ -102,8 +102,10 @@ static NTSTATUS sam_password_ok(TALLOC_CTX *mem_ctx, lm_hash, nt_hash, user_sess_key, lm_sess_key); + default: + DEBUG(0,("user_info constructed for user '%s' was invalid - password_state=%u invalid.\n", username, user_info->password_state)); + return NT_STATUS_INTERNAL_ERROR; } - return NT_STATUS_INVALID_PARAMETER; } /**************************************************************************** -- cgit