From 8c4733b412591f2b23031283a078d701b6199ca7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 3 Jun 2005 11:18:48 +0000 Subject: r7219: Don't allow 'binding' to be used uninitilaised. Andrew Bartlett (This used to be commit 3dd730fbc880ddc4f2efc6105cd21ec45f4afdd5) --- source4/auth/auth_domain.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/auth/auth_domain.c') diff --git a/source4/auth/auth_domain.c b/source4/auth/auth_domain.c index 4e5acf36e3..041135e4d4 100644 --- a/source4/auth/auth_domain.c +++ b/source4/auth/auth_domain.c @@ -49,6 +49,8 @@ static NTSTATUS domain_check_password(struct auth_method_context *ctx, if (bindings && bindings[0]) { binding = bindings[0]; + } else { + return NT_STATUS_INVALID_PARAMETER; } if (!user_info->account_name) { -- cgit