Check rng return value when generating radius message authenticator

This commit is contained in:
Martin Willi
2012-07-16 14:53:37 +02:00
parent 126eb2af59
commit 3629740c7f
+4 -1
View File
@@ -293,7 +293,10 @@ METHOD(radius_message_t, sign, bool,
if (rng) if (rng)
{ {
/* build Request-Authenticator */ /* 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 else
{ {