From 4a2df5482513a0d428c061087dff79ef6f81cf3a Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 6 Nov 2016 13:30:15 +0000 Subject: [PATCH] Use explicit_bzero(). With BSD auth these data have already been wiped when we reach those points but just in case. --- app/xenodm/greeter/greet.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/xenodm/greeter/greet.c b/app/xenodm/greeter/greet.c index 420f6790d..f07656aff 100644 --- a/app/xenodm/greeter/greet.c +++ b/app/xenodm/greeter/greet.c @@ -125,8 +125,8 @@ GreetDone ( break; } if (done) { - bzero (data->name, NAME_LEN); - bzero (data->passwd, PASSWORD_LEN); + explicit_bzero (data->name, NAME_LEN); + explicit_bzero (data->passwd, PASSWORD_LEN); } } @@ -338,8 +338,8 @@ greet_user_rtn GreetUser( else { FailedLogin (d, greet->name); - bzero (greet->name, strlen(greet->name)); - bzero (greet->password, strlen(greet->password)); + explicit_bzero (greet->name, strlen(greet->name)); + explicit_bzero (greet->password, strlen(greet->password)); } } DeleteXloginResources (d, dpy);