mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Detect null secret as error, it is temp. fix until next release
Submitted by: Craig Metz <cmetz@inner.net>
This commit is contained in:
parent
ba9be04c72
commit
6d0f9ab962
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue