Fix wrong spot

This commit is contained in:
Raymond Li 2020-07-18 22:08:12 -04:00
parent 815158e8c1
commit 83c27890e4
No known key found for this signature in database
GPG Key ID: A014EA89B62BBB1B
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
#include <err.h>
#include <errno.h>
#include <assert.h>
#ifdef HAVE_EXPLICIT_BZERO
#ifdef __OpenBSD__
#include <bsd_auth.h>
#else
#include <security/pam_appl.h>
@ -404,7 +404,7 @@ static bool load_compose_table(const char *locale) {
*
*/
static void clear_password_memory(void) {
#ifdef __OpenBSD__
#ifdef HAVE_EXPLICIT_BZERO
/* Use explicit_bzero(3) which was explicitly designed not to be
* optimized out by the compiler. */
explicit_bzero(password, strlen(password));