diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-07-31 21:27:30 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-07-31 21:27:30 +0100 |
commit | f138bd25e9184c3033f405a7bbb5734d82a877c7 (patch) | |
tree | c01265d2b2f428b3d4680c17e4fc3c7f5e16a3d4 /protocols/jabber/jabber.c | |
parent | e1c926f53750ca288f30f3d62eecdc763b67d642 (diff) |
OAuth code cleanup.
Diffstat (limited to 'protocols/jabber/jabber.c')
-rw-r--r-- | protocols/jabber/jabber.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index 64858de2..c97adf71 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -139,6 +139,8 @@ static void jabber_login( account_t *acc ) if( set_getbool( &acc->set, "oauth" ) ) { + jd->fd = jd->r_inpa = jd->w_inpa = -1; + /* For the first login with OAuth, we have to authenticate via the browser. For subsequent logins, exchange the refresh token for a valid access token (even though the last one maybe didn't expire yet). */ @@ -284,6 +286,7 @@ static void jabber_logout( struct im_connection *ic ) xt_free( jd->xt ); + g_free( jd->oauth2_access_token ); g_free( jd->away_message ); g_free( jd->username ); g_free( jd ); |