From 6d0f9ab9622e27024ea26d1aa46aea244d77276f Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 5 Aug 1997 23:15:28 +0000 Subject: [PATCH] Detect null secret as error, it is temp. fix until next release Submitted by: Craig Metz --- contrib/opie/libopie/generator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/opie/libopie/generator.c b/contrib/opie/libopie/generator.c index ccd67c7532f4..539a1f99f7dc 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;