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.
This commit is contained in:
Todd C. Miller
2016-05-16 10:18:31 -06:00
parent 67eb6dad0f
commit b9dde14808

View File

@@ -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)