talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 62bcd4d688a6a886b9a922f6f03fa14a8f8cdd2b
parent 759c3180615fd465f634e70f3392ccf258e7d7dd
Author: Ricardo Mones <ricardo@mones.org>
Date:   Fri, 21 Dec 2018 18:44:28 +0100

Libravatar: fix API usage if built without GnuTLS

Thanks Andrej for reporting!

Diffstat:
Msrc/plugins/libravatar/libravatar_federation.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/plugins/libravatar/libravatar_federation.c b/src/plugins/libravatar/libravatar_federation.c @@ -78,6 +78,7 @@ static void add_federated_url_for_domain(const gchar *url, const gchar *domain) */ gchar *federated_url_for_address(const gchar *address) { +#if defined USE_GNUTLS gchar *domain = NULL, *last = NULL, *addr = NULL, *url = NULL; gchar *host = NULL; guint16 port = 0; @@ -142,5 +143,9 @@ invalid_addr: debug_print("invalid address for libravatar federated domain\n"); return NULL; +#else + debug_print("federated domains disabled (built without GnuTLS support)\n"); + return NULL; +#endif }