diff options
author | ache <ache@FreeBSD.org> | 1997-08-05 23:15:28 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-08-05 23:15:28 +0000 |
commit | 00ca5799cb7aa4d5cf4db0a9b986d42ebfc28a53 (patch) | |
tree | eda6392b7d6d7cb642cfeac4999b9ffceca64d9b /contrib/opie/libopie | |
parent | e150d815cc119026d37033e4d248bca618241d26 (diff) | |
download | FreeBSD-src-00ca5799cb7aa4d5cf4db0a9b986d42ebfc28a53.zip FreeBSD-src-00ca5799cb7aa4d5cf4db0a9b986d42ebfc28a53.tar.gz |
Detect null secret as error, it is temp. fix until next release
Submitted by: Craig Metz <cmetz@inner.net>
Diffstat (limited to 'contrib/opie/libopie')
-rw-r--r-- | contrib/opie/libopie/generator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/opie/libopie/generator.c b/contrib/opie/libopie/generator.c index ccd67c7..539a1f9 100644 --- a/contrib/opie/libopie/generator.c +++ b/contrib/opie/libopie/generator.c @@ -45,6 +45,9 @@ int opiegenerator FUNCTION((buffer, secret, response), char *buffer AND char *se if ((sequence < 2) || (sequence > 9999)) return 1; + if (!secret[0]) + return 2; + if (opiepasscheck(secret)) return -2; |