aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oauth.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-12-21 20:35:13 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2011-12-21 20:35:13 +0100
commite306fbf84aa37ab934c5ea18ccfd75da041af052 (patch)
tree6d9928b760c071f479fbf3bfeeaabf9dd58d0b67 /lib/oauth.c
parent31db81651fa3ac5d742c3616efaccf43a1ebcaf2 (diff)
Fixed a bug that probably (can't test this now since it's down) broke OAuth
setup for identi.ca. Turning on oauth for identi.ca accounts by default now.
Diffstat (limited to 'lib/oauth.c')
-rw-r--r--lib/oauth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oauth.c b/lib/oauth.c
index acbf433e..04949e1b 100644
--- a/lib/oauth.c
+++ b/lib/oauth.c
@@ -308,6 +308,7 @@ static void oauth_request_token_done( struct http_request *req )
st->auth_url = g_strdup_printf( "%s?%s", st->sp->url_authorize, req->reply_body );
oauth_params_parse( &params, req->reply_body );
st->request_token = g_strdup( oauth_params_get( &params, "oauth_token" ) );
+ st->token_secret = g_strdup( oauth_params_get( &params, "oauth_token_secret" ) );
oauth_params_free( &params );
}
@@ -337,6 +338,7 @@ static void oauth_access_token_done( struct http_request *req )
{
oauth_params_parse( &st->params, req->reply_body );
st->token = g_strdup( oauth_params_get( &st->params, "oauth_token" ) );
+ g_free( st->token_secret );
st->token_secret = g_strdup( oauth_params_get( &st->params, "oauth_token_secret" ) );
}