From 3e38d64397d7c26a782410f82f486c3de087bf40 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 24 Sep 2015 01:13:45 +0100 Subject: [PATCH] Added HAVE_LIBMESODE check before setting cert path --- src/xmpp/connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index e4a5bb32..768a4476 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -419,10 +419,12 @@ _jabber_connect(const char * const fulljid, const char * const passwd, xmpp_conn_disable_tls(jabber_conn.conn); } +#ifdef HAVE_LIBMESODE char *cert_path = prefs_get_string(PREF_CERT_PATH); if (cert_path) { xmpp_conn_tlscert_path(jabber_conn.conn, cert_path); } +#endif #ifdef HAVE_LIBMESODE int connect_status = xmpp_connect_client(jabber_conn.conn, altdomain, port,