From 3405362b1d3160b2714cf17561a8d48e5405f7e8 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 3 Nov 2014 16:52:47 +0900 Subject: [PATCH] e_auth - null out compilert memset opts like lokker --- src/bin/e_auth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/e_auth.c b/src/bin/e_auth.c index 85f7ffefa..7bda8ae83 100644 --- a/src/bin/e_auth.c +++ b/src/bin/e_auth.c @@ -174,6 +174,9 @@ e_auth_begin(char *passwd) pam_end(da.pam.handle, pamerr); /* security - null out passwd string once we are done with it */ memset(da.passwd, 0, sizeof(da.passwd)); + /* break compiler optimization */ + if (da.passwd[0] || da.passwd[3]) + fprintf(stderr, "ACK!\n"); if (pamerr == PAM_SUCCESS) { free(current_user);