From: Guus Sliepen Date: Wed, 22 Jun 2016 15:42:13 +0000 (+0200) Subject: Check return value of RSA_generate_key_ex(). X-Git-Tag: release-1.0.29~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=546c7375e8c7bf8bbbf2637178d87501d509577c;p=oweals%2Ftinc.git Check return value of RSA_generate_key_ex(). --- diff --git a/src/tincd.c b/src/tincd.c index ccd79dc..aaf40e2 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -411,7 +411,7 @@ static bool keygen(int bits) { BN_free(e); BN_GENCB_free(cb); - if(!rsa_key) { + if(!result) { fprintf(stderr, "Error during key generation!\n"); return false; } else