]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: log error messages for openssl/gnutls context creation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 3 Nov 2024 11:58:12 +0000 (12:58 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 Nov 2024 19:48:10 +0000 (19:48 +0000)
commitabd1e408203d5d445b05f4dc0ac07e35114532d1
treeccce8e8639ff815c128e01bd8795c6d1e6bd5d73
parent5a13150485769416a822c3eb457133b093e94dd1
resolved: log error messages for openssl/gnutls context creation

In https://bugzilla.redhat.com/show_bug.cgi?id=2322937 we're getting
an error message:
Okt 29 22:21:03 fedora systemd-resolved[29311]: Could not create manager: Cannot allocate memory
I expect that this actually comes from dnstls_manager_init(), the
openssl version. But without real logs it's hard to know for sure.

Use EIO instead of ENOMEM, because the problem is unlikely to be actually
related to memory.

(cherry picked from commit ee95e86ae163e436384f1b782a77a7e18deba890)
src/resolve/resolved-dnstls-gnutls.c
src/resolve/resolved-dnstls-openssl.c