changeset 1445:00503a68f431

Fix false error with GnuTLS ssl_verify doesn't have to be checked when ssl isn't set!
author Mikael Berthe <mikael@lilotux.net>
date Mon, 17 Mar 2008 10:51:23 +0100
parents 3bf11085c6a5
children 49c8be874344
files mcabber/src/main.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/main.c	Sun Mar 02 11:14:42 2008 +0100
+++ b/mcabber/src/main.c	Mon Mar 17 10:51:23 2008 +0100
@@ -128,7 +128,7 @@
     cafile = capath = ciphers = NULL;
   }
 #elif defined HAVE_GNUTLS
-  if (sslverify != 0) {
+  if (ssl && sslverify != 0) {
     scr_LogPrint(LPRINT_LOGNORM, "** Error: SSL certificate checking "
                  "is not supported yet with GnuTLS.");
     scr_LogPrint(LPRINT_LOGNORM,