[PATCH] Move a variable closer to its use

Volker Lendecke vl at samba.org
Mon Mar 6 13:10:11 UTC 2017


Hi!

Review appreciated!

Thanks, Volker
-------------- next part --------------
>From e9b4c0be20eece855b57fe42d2184dbe1f322b70 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Fri, 3 Mar 2017 06:03:31 +0100
Subject: [PATCH] auth4: Move a variable closer to its use

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 source4/auth/ntlm/auth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source4/auth/ntlm/auth.c b/source4/auth/ntlm/auth.c
index a1276df..05d6c3c 100644
--- a/source4/auth/ntlm/auth.c
+++ b/source4/auth/ntlm/auth.c
@@ -266,7 +266,6 @@ _PUBLIC_ struct tevent_req *auth_check_password_send(TALLOC_CTX *mem_ctx,
 	/* if all the modules say 'not for me' this is reasonable */
 	NTSTATUS nt_status;
 	uint8_t chal[8];
-	struct auth_usersupplied_info *user_info_tmp;
 	struct tevent_immediate *im;
 
 	DEBUG(3,("auth_check_password_send: "
@@ -285,6 +284,7 @@ _PUBLIC_ struct tevent_req *auth_check_password_send(TALLOC_CTX *mem_ctx,
 
 	if (!user_info->mapped_state) {
 		int server_role = lpcfg_server_role(auth_ctx->lp_ctx);
+		struct auth_usersupplied_info *user_info_tmp;
 
 		nt_status = map_user_info(
 			auth_ctx->sam_ctx, req,
-- 
2.1.4



More information about the samba-technical mailing list