X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fopenssl%2Fecdh.c;h=5238c3409de3b1dacee08e141771aa5913615f06;hp=871f9fbd2f89a67400031e367217772c24c8f83e;hb=d917c8cb6b69475d568ccbe82389b9f2b3eb5e80;hpb=58f4b845b9a7d83739af77337f2ce263d8df7838 diff --git a/src/openssl/ecdh.c b/src/openssl/ecdh.c index 871f9fbd..5238c340 100644 --- a/src/openssl/ecdh.c +++ b/src/openssl/ecdh.c @@ -41,7 +41,7 @@ bool ecdh_generate_public(ecdh_t *ecdh, void *pubkey) { logger(DEBUG_ALWAYS, LOG_ERR, "Generating EC key failed: %s", ERR_error_string(ERR_get_error(), NULL)); return false; } - + const EC_POINT *point = EC_KEY_get0_public_key(*ecdh); if(!point) { EC_KEY_free(*ecdh);