Detect null secret as error, it is temp. fix until next release

Submitted by: Craig Metz <cmetz@inner.net>
This commit is contained in:
Andrey A. Chernov 1997-08-05 23:15:28 +00:00
parent ba9be04c72
commit 6d0f9ab962

View File

@ -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;