Use OpenBSD-compatible freezero() in place of explicit_bzero() + free()
This commit is contained in:
@@ -134,8 +134,7 @@ restart:
|
||||
error = AUTH_FAILURE;
|
||||
done:
|
||||
explicit_bzero(buf, sizeof(buf));
|
||||
explicit_bzero(pass, strlen(pass));
|
||||
free(pass);
|
||||
freezero(pass, strlen(pass));
|
||||
debug_return_int(error);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user