diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-10-23 20:38:37 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-10-23 20:38:37 +0000 |
commit | 4187c292c13bb4c0aab51fdc8ddc96d200c2d3b6 (patch) | |
tree | 6539daf5a9686a600b99f61371719cbd84660f42 | |
parent | 8d6f4b8517e4e3b1844e3227b4cde4be423154b3 (diff) |
endpwent() is not needed after getpwnam()
-rw-r--r-- | app/xenodm/greeter/verify.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/xenodm/greeter/verify.c b/app/xenodm/greeter/verify.c index a2951ab7d..9fd67a38f 100644 --- a/app/xenodm/greeter/verify.c +++ b/app/xenodm/greeter/verify.c @@ -94,8 +94,6 @@ Verify (struct display *d, struct greet_info *greet, struct verify_info *verify) style ? style : "default"); p = getpwnam (greet->name); - endpwent(); - if (!p || strlen (greet->name) == 0) { Debug("getpwnam() failed.\n"); explicit_bzero(greet->password, strlen(greet->password)); |