e_auth - null out compilert memset opts like lokker
This commit is contained in:
parent
4bfb77c118
commit
c8d16cdef6
|
@ -174,6 +174,9 @@ e_auth_begin(char *passwd)
|
||||||
pam_end(da.pam.handle, pamerr);
|
pam_end(da.pam.handle, pamerr);
|
||||||
/* security - null out passwd string once we are done with it */
|
/* security - null out passwd string once we are done with it */
|
||||||
memset(da.passwd, 0, sizeof(da.passwd));
|
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)
|
if (pamerr == PAM_SUCCESS)
|
||||||
{
|
{
|
||||||
free(current_user);
|
free(current_user);
|
||||||
|
|
Loading…
Reference in New Issue