diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-11-06 13:30:16 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-11-06 13:30:16 +0000 |
commit | b72b9d1208432fc5ef46335dfcf73fc05ca86795 (patch) | |
tree | 45e00aef362d539ed15d64ac33212f9b6cbbcda3 /app/xenodm | |
parent | 7295da741d3f7af93c8014f904473f0024276458 (diff) |
Use explicit_bzero(). With BSD auth these data have already been
wiped when we reach those points but just in case.
Diffstat (limited to 'app/xenodm')
-rw-r--r-- | app/xenodm/greeter/greet.c | 8 |
1 files 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); |