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

@@ -732,8 +732,7 @@ done:
struct pam_response *pr = &reply[n];
if (pr->resp != NULL) {
explicit_bzero(pr->resp, strlen(pr->resp));
free(pr->resp);
freezero(pr->resp, strlen(pr->resp));
pr->resp = NULL;
}
}