Avoid a clang analyzer false positive.
This commit is contained in:
@@ -295,7 +295,7 @@ verify_user(struct passwd *pw, char *prompt, int validated,
|
||||
if (success != AUTH_FAILURE)
|
||||
break;
|
||||
}
|
||||
if (!standalone) {
|
||||
if (pass != NULL) {
|
||||
memset_s(pass, SUDO_CONV_REPL_MAX, 0, strlen(pass));
|
||||
free(pass);
|
||||
}
|
||||
|
Reference in New Issue
Block a user