diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-12-07 05:09:34 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-12-07 05:09:34 +0000 |
commit | df6aeb4992b844fbd0ae02227157a7561f3f28f5 (patch) | |
tree | d13f7e610941ff44e4ef44b57decbed25be38a54 | |
parent | 28d474b23d9abe9b6d06fdeecae9ea934abfc6c9 (diff) |
Check for keyfile == NULL in skey_unlock()
-rw-r--r-- | lib/libskey/skeylogin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libskey/skeylogin.c b/lib/libskey/skeylogin.c index aa762237fda..e7de30d66ea 100644 --- a/lib/libskey/skeylogin.c +++ b/lib/libskey/skeylogin.c @@ -10,7 +10,7 @@ * * S/Key verification check, lookups, and authentication. * - * $OpenBSD: skeylogin.c,v 1.39 2001/06/23 21:42:39 millert Exp $ + * $OpenBSD: skeylogin.c,v 1.40 2001/12/07 05:09:33 millert Exp $ */ #include <sys/param.h> @@ -711,7 +711,7 @@ skey_unlock(mp) { struct flock fl; - if (mp->logname == NULL) + if (mp->logname == NULL || mp->keyfile == NULL) return(-1); fl.l_start = mp->recstart; |