From: Steffan Karger Date: Tue, 29 Apr 2014 20:03:43 +0000 (+0200) Subject: Check RAND_bytes() return value, fail when getting random fails. X-Git-Tag: release-1.0.24~10 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=6685f2c8afc4775c3656dccc5a37286c01c0e854;hp=6685f2c8afc4775c3656dccc5a37286c01c0e854 Check RAND_bytes() return value, fail when getting random fails. 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 ---