oops ... minor fix to above
authorArt Cancro <ajc@citadel.org>
Wed, 19 Mar 2008 19:41:58 +0000 (19:41 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 19 Mar 2008 19:41:58 +0000 (19:41 +0000)
citadel/modules/jabber/xmpp_sasl_service.c

index 8a32aee22058d8a6bf1661fd96a79a991d57ef7b..78eab97fc6dc7c2cf1a54fdb68170738f5b9e29f 100644 (file)
@@ -59,7 +59,6 @@ int xmpp_auth_plain(char *authstring)
        char user[256];
        char pass[256];
        int result;
-       char *ptr = NULL;
 
 
        /* Take apart the authentication string */
@@ -117,7 +116,7 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) {
                return;
        }
 
-        if (CC->logged_in) logout(CC);  /* Client may try to log in twice.  Handle this. */
+        if (CC->logged_in) logout();  /* Client may try to log in twice.  Handle this. */
 
        if (xmpp_auth_plain(authstring) == 0) {
                cprintf("<success xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\"/>");
@@ -138,7 +137,7 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) {
 void jabber_non_sasl_authenticate(char *iq_id, char *username, char *password, char *resource) {
        int result;
 
-        if (CC->logged_in) logout(CC);  /* Client may try to log in twice.  Handle this. */
+        if (CC->logged_in) logout();  /* Client may try to log in twice.  Handle this. */
 
        result = CtdlLoginExistingUser(NULL, username);
        if (result == login_ok) {