From 546c7375e8c7bf8bbbf2637178d87501d509577c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 22 Jun 2016 17:42:13 +0200 Subject: [PATCH] Check return value of RSA_generate_key_ex(). --- src/tincd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1