s4:auth/ntlm/auth_sam.c - fix call to "get_server_info_principal"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 15 Jan 2011 15:54:23 +0000 (16:54 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 15 Jan 2011 17:05:59 +0000 (18:05 +0100)
This should obviously point to the wrapper not the call itself.

Found out by Tru64 host build warning.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Jan 15 18:05:59 CET 2011 on sn-devel-104

source4/auth/ntlm/auth_sam.c

index 645713286d0034b192c93b9f87bb8109b01c9c3b..d9aec66d522f966ad2e8fd2ca249e43723f824af 100644 (file)
@@ -354,11 +354,11 @@ static NTSTATUS authsam_want_check(struct auth_method_context *ctx,
 
                                   
 /* Wrapper for the auth subsystem pointer */
-NTSTATUS authsam_get_server_info_principal_wrapper(TALLOC_CTX *mem_ctx,
-                                                  struct auth_context *auth_context,
-                                                  const char *principal,
-                                                  struct ldb_dn *user_dn,
-                                                  struct auth_serversupplied_info **server_info)
+static NTSTATUS authsam_get_server_info_principal_wrapper(TALLOC_CTX *mem_ctx,
+                                                         struct auth_context *auth_context,
+                                                         const char *principal,
+                                                         struct ldb_dn *user_dn,
+                                                         struct auth_serversupplied_info **server_info)
 {
        return authsam_get_server_info_principal(mem_ctx, auth_context->lp_ctx, auth_context->sam_ctx,
                                                 principal, user_dn, server_info);
@@ -368,7 +368,7 @@ static const struct auth_operations sam_ignoredomain_ops = {
        .get_challenge             = auth_get_challenge_not_implemented,
        .want_check                = authsam_ignoredomain_want_check,
        .check_password            = authsam_check_password_internals,
-       .get_server_info_principal = authsam_get_server_info_principal
+       .get_server_info_principal = authsam_get_server_info_principal_wrapper
 };
 
 static const struct auth_operations sam_ops = {
@@ -376,7 +376,7 @@ static const struct auth_operations sam_ops = {
        .get_challenge             = auth_get_challenge_not_implemented,
        .want_check                = authsam_want_check,
        .check_password            = authsam_check_password_internals,
-       .get_server_info_principal = authsam_get_server_info_principal
+       .get_server_info_principal = authsam_get_server_info_principal_wrapper
 };
 
 _PUBLIC_ NTSTATUS auth_sam_init(void)