summaryrefslogtreecommitdiffstats
path: root/contrib/opie/libopie
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-08-05 23:15:28 +0000
committerache <ache@FreeBSD.org>1997-08-05 23:15:28 +0000
commit00ca5799cb7aa4d5cf4db0a9b986d42ebfc28a53 (patch)
treeeda6392b7d6d7cb642cfeac4999b9ffceca64d9b /contrib/opie/libopie
parente150d815cc119026d37033e4d248bca618241d26 (diff)
downloadFreeBSD-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.c3
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;
OpenPOWER on IntegriCloud