summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2016-11-06 13:30:16 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:36 +0200
commit9e7e0077341d4ef42d69126dfcabb39ce9503373 (patch)
tree0271f2a047a1c9f0d4c4fcf1bea5deed61f386f3
parent42dddd311ab0b366b9a3d115debe06e1cdf9f8c3 (diff)
Use explicit_bzero(). With BSD auth these data have already been wiped when we reach those points but just in case.
-rw-r--r--greeter/greet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/greeter/greet.c b/greeter/greet.c
index 420f679..f07656a 100644
--- a/greeter/greet.c
+++ b/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);