[Commits] [SCM] claws branch, master, updated. 3.17.2-20-g62bcd4d

mones at claws-mail.org mones at claws-mail.org
Fri Dec 21 18:45:36 CET 2018


The branch, master has been updated
       via  62bcd4d688a6a886b9a922f6f03fa14a8f8cdd2b (commit)
      from  759c3180615fd465f634e70f3392ccf258e7d7dd (commit)

Summary of changes:
 src/plugins/libravatar/libravatar_federation.c |    5 +++++
 1 file changed, 5 insertions(+)


- Log -----------------------------------------------------------------
commit 62bcd4d688a6a886b9a922f6f03fa14a8f8cdd2b
Author: Ricardo Mones <ricardo at mones.org>
Date:   Fri Dec 21 18:44:28 2018 +0100

    Libravatar: fix API usage if built without GnuTLS
    
    Thanks Andrej for reporting!

diff --git a/src/plugins/libravatar/libravatar_federation.c b/src/plugins/libravatar/libravatar_federation.c
index c419a14..9f8266e 100644
--- 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
 }
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list