diff options
author | 2001-10-26 19:44:38 +0000 | |
---|---|---|
committer | 2001-10-26 19:44:38 +0000 | |
commit | c39118a530767eeb3ba2b223f1df036f0dae16ec (patch) | |
tree | 4e6766772a3a18d3051f5268a87045db9b22e24b /lib/libc/gen/authenticate.c | |
parent | sync (diff) | |
download | wireguard-openbsd-c39118a530767eeb3ba2b223f1df036f0dae16ec.tar.xz wireguard-openbsd-c39118a530767eeb3ba2b223f1df036f0dae16ec.zip |
run the approve for accounts with expiration time, too. ok millert@
Diffstat (limited to 'lib/libc/gen/authenticate.c')
-rw-r--r-- | lib/libc/gen/authenticate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/authenticate.c b/lib/libc/gen/authenticate.c index a0da2831bcd..b85908ebb12 100644 --- a/lib/libc/gen/authenticate.c +++ b/lib/libc/gen/authenticate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authenticate.c,v 1.5 2001/07/09 06:57:42 deraadt Exp $ */ +/* $OpenBSD: authenticate.c,v 1.6 2001/10/26 19:44:38 markus Exp $ */ /*- * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. @@ -245,7 +245,7 @@ auth_approval(auth_session_t *as, login_cap_t *lc, char *name, char *type) _warn(NULL); goto out; } - if (auth_check_expire(as)) /* is this account expired */ + if (auth_check_expire(as) < 0) /* is this account expired */ goto out; if (_auth_checknologin(lc, auth_getitem(as, AUTHV_INTERACTIVE) != NULL)) { |