]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
TLS client: fix certificate loading from file
authorPetr Špaček <petr.spacek@nic.cz>
Thu, 18 Jan 2018 13:11:16 +0000 (14:11 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 18 Jan 2018 15:30:07 +0000 (16:30 +0100)
commit7585e8790a96c1c5629b6b072722f97c932ccb44
treea7f9020de2ba3eba663fbba18a76388ee65946fa
parent4a0eb5121eacbada2843000cff27f77e325e7351
TLS client: fix certificate loading from file

gnutls_certificate_set_x509_trust_file could theoretically return 0
to indicate nothing was read, so we need to check for this as well.
daemon/tls.c