openssl-util: Fix logging

This commit is contained in:
Daan De Meyer
2025-12-12 14:14:20 +01:00
parent 9e418cd075
commit 8ecb7deafa

View File

@@ -1763,7 +1763,7 @@ int openssl_extract_public_key(EVP_PKEY *private_key, EVP_PKEY **ret) {
_cleanup_(memstream_done) MemStream m = {};
FILE *tf = memstream_init(&m);
if (!tf)
return log_oom();
return -ENOMEM;
if (i2d_PUBKEY_fp(tf, private_key) != 1)
return -EIO;