Use OpenBSD-compatible freezero() in place of explicit_bzero() + free()

This commit is contained in:
Todd C. Miller
2020-08-10 19:24:33 -06:00
parent cef6e3687e
commit ce97ca28db
19 changed files with 105 additions and 37 deletions

View File

@@ -135,8 +135,7 @@ err:
struct sudo_conv_reply *repl = &replies[n];
if (repl->reply == NULL)
continue;
explicit_bzero(repl->reply, strlen(repl->reply));
free(repl->reply);
freezero(repl->reply, strlen(repl->reply));
repl->reply = NULL;
} while (n--);
}