Check rng return value when generating radius message authenticator
This commit is contained in:
1 parent
126eb2af59
commit
3629740c7f
1 file changed
+4
-1
@@ -293,7 +293,10 @@ METHOD(radius_message_t, sign, bool,
|
||||
if (rng)
|
||||
{
|
||||
/* build Request-Authenticator */
|
||||
rng->get_bytes(rng, HASH_SIZE_MD5, this->msg->authenticator);
|
||||
if (!rng->get_bytes(rng, HASH_SIZE_MD5, this->msg->authenticator))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user