From: Guus Sliepen Date: Tue, 30 Aug 2011 17:56:56 +0000 (+0200) Subject: Prevent read_rsa_public_key() from returning an uninitialized RSA structure. X-Git-Tag: release-1.0.17~30 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=e838289683c0039fac0ae6172d40b4177c17911b;hp=e838289683c0039fac0ae6172d40b4177c17911b Prevent read_rsa_public_key() from returning an uninitialized RSA structure. In case the config file could not be opened a new but unitialized RSA structure would be returned, causing a segmentation fault later on. This would only happen in the case that the config file could be opened before, but not when read_rsa_public_key() was called. This situation could occur when the --user option was used, and the config files were not readable by the specified user. ---