diff options
Diffstat (limited to 'source4/auth/ntlm/auth_winbind.c')
-rw-r--r-- | source4/auth/ntlm/auth_winbind.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/auth/ntlm/auth_winbind.c b/source4/auth/ntlm/auth_winbind.c index 7406a94275..51a1f4d41f 100644 --- a/source4/auth/ntlm/auth_winbind.c +++ b/source4/auth/ntlm/auth_winbind.c @@ -240,6 +240,11 @@ static NTSTATUS winbind_check_password(struct auth_method_context *ctx, const struct auth_usersupplied_info *user_info_new; struct netr_IdentityInfo *identity_info; + if (!ctx->auth_ctx->msg_ctx) { + DEBUG(0,("winbind_check_password: auth_context_create was called with out messaging context\n")); + return NT_STATUS_INTERNAL_ERROR; + } + s = talloc(mem_ctx, struct winbind_check_password_state); NT_STATUS_HAVE_NO_MEMORY(s); |