summaryrefslogtreecommitdiff
path: root/libpurple/protocols/jabber/auth_cyrus.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpurple/protocols/jabber/auth_cyrus.c')
-rw-r--r--libpurple/protocols/jabber/auth_cyrus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpurple/protocols/jabber/auth_cyrus.c b/libpurple/protocols/jabber/auth_cyrus.c
index 83e046325b..7f76160a12 100644
--- a/libpurple/protocols/jabber/auth_cyrus.c
+++ b/libpurple/protocols/jabber/auth_cyrus.c
@@ -274,7 +274,7 @@ jabber_auth_start_cyrus(JabberStream *js, xmlnode **reply, char **error)
js->auth_fail_count++;
if (js->auth_fail_count == 1 &&
- (js->sasl_mechs->str && purple_strequal(js->sasl_mechs->str, "GSSAPI"))) {
+ purple_strequal(js->sasl_mechs->str, "GSSAPI")) {
/* If we tried GSSAPI first, it failed, and it was the only method we had to try, try jabber:iq:auth
* for compatibility with iChat 10.5 Server and other jabberd based servers.
*
@@ -569,7 +569,7 @@ jabber_cyrus_handle_failure(JabberStream *js, xmlnode *packet,
return jabber_auth_start_cyrus(js, reply, error);
} else if ((js->auth_fail_count == 1) &&
- (js->current_mech && purple_strequal(js->current_mech, "GSSAPI"))) {
+ purple_strequal(js->current_mech, "GSSAPI")) {
/* If we tried GSSAPI first, it failed, and it was the only method we had to try, try jabber:iq:auth
* for compatibility with iChat 10.5 Server and other jabberd based servers.
*