aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/io.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-12-19 19:45:53 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2011-12-19 19:45:53 +0100
commit41658da57b611d17030dc7e2c3feb54f99b668ac (patch)
tree7fd45f98c40f11fd23b7577e99584d3a6f48a486 /protocols/jabber/io.c
parent9f958f794a1710f17eaae79c64f90f1f66134094 (diff)
Just check if verification code != 0 instead of checking for one specific
bit. Any non-0 failure means a problem.
Diffstat (limited to 'protocols/jabber/io.c')
-rw-r--r--protocols/jabber/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c
index 5ff8052c..5b9149af 100644
--- a/protocols/jabber/io.c
+++ b/protocols/jabber/io.c
@@ -291,7 +291,7 @@ gboolean jabber_connected_ssl( gpointer data, int returncode, void *source, b_in
already, set it to NULL here to prevent a double cleanup: */
jd->ssl = NULL;
- if( returncode & VERIFY_CERT_INVALID)
+ if( returncode != 0 )
{
char *err = ssl_verify_strerror( returncode );
imcb_error( ic, "Certificate verification problem 0x%x: %s",