From b9dde1480842eae87229a76ffc454776bd3a7171 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 16 May 2016 10:18:31 -0600 Subject: [PATCH] No need to set pass to NULL after freeing at the end of the loop it since it is already set to NULL each time through the loop. --- plugins/sudoers/auth/sudo_auth.c | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/sudoers/auth/sudo_auth.c b/plugins/sudoers/auth/sudo_auth.c index bb3010ef0..dca4e1c7c 100644 --- a/plugins/sudoers/auth/sudo_auth.c +++ b/plugins/sudoers/auth/sudo_auth.c @@ -298,7 +298,6 @@ verify_user(struct passwd *pw, char *prompt, int validated, if (!standalone) { memset_s(pass, SUDO_CONV_REPL_MAX, 0, strlen(pass)); free(pass); - pass = NULL; } if (success != AUTH_FAILURE) -- 2.40.0