Correctly initialize winbind auth method.
authorVolker Lendecke <vlendec@samba.org>
Mon, 26 May 2003 16:38:35 +0000 (16:38 +0000)
committerVolker Lendecke <vlendec@samba.org>
Mon, 26 May 2003 16:38:35 +0000 (16:38 +0000)
(This used to be commit b9e7ce9d85c4203779d6b9bfb2e65a4ed5fe33ff)

source3/auth/auth_winbind.c

index 76b5c3418369b5673e505e695e1989bd187a1767..79395a99c9cc5d2b828066dcaacd2ab9d46b5354 100644 (file)
@@ -132,6 +132,9 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
 /* module initialisation */
 NTSTATUS auth_init_winbind(struct auth_context *auth_context, const char *param, auth_methods **auth_method) 
 {
+       if (!make_auth_methods(auth_context, auth_method)) {
+               return NT_STATUS_NO_MEMORY;
+       }
 
        (*auth_method)->name = "winbind";
        (*auth_method)->auth = check_winbind_security;