summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/authenticate.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-10-26 19:44:38 +0000
committermarkus <markus@openbsd.org>2001-10-26 19:44:38 +0000
commitc39118a530767eeb3ba2b223f1df036f0dae16ec (patch)
tree4e6766772a3a18d3051f5268a87045db9b22e24b /lib/libc/gen/authenticate.c
parentsync (diff)
downloadwireguard-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.c4
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)) {