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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user