Check RAND_bytes() return value, fail when getting random fails.
authorSteffan Karger <steffan@karger.me>
Tue, 29 Apr 2014 20:03:43 +0000 (22:03 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 1 May 2014 12:56:07 +0000 (14:56 +0200)
When RAND_bytes() does not return success, the buffer contents cannot be
used. This patch makes sure the return code is checked, and the connection
fails when keys or challenges cannot be trusted.

Signed-off-by: Steffan Karger <steffan@karger.me>

No differences found