auth_server: fix segfault reported by Julien Kerihuel <j.kerihuel@openchange.org>
authorStefan Metzmacher <metze@samba.org>
Fri, 1 Aug 2008 13:19:27 +0000 (15:19 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Aug 2008 13:22:25 +0000 (15:22 +0200)
metze

source/auth/ntlm/auth_server.c

index f154cf04258d28bf8e36201c4147507008e28b77..7efbdb30504d59d60f06296b869c9b25f0b5b238 100644 (file)
@@ -70,7 +70,7 @@ static NTSTATUS server_get_challenge(struct auth_method_context *ctx, TALLOC_CTX
        io.in.called_name = strupper_talloc(mem_ctx, io.in.dest_host);
 
        /* We don't want to get as far as the session setup */
-       io.in.credentials = NULL;
+       io.in.credentials = cli_credentials_init_anon(mem_ctx);
        io.in.service = NULL;
 
        io.in.workgroup = ""; /* only used with SPNEGO, disabled above */