From e306fbf84aa37ab934c5ea18ccfd75da041af052 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 21 Dec 2011 20:35:13 +0100 Subject: 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. --- lib/oauth.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/oauth.c') 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( ¶ms, req->reply_body ); st->request_token = g_strdup( oauth_params_get( ¶ms, "oauth_token" ) ); + st->token_secret = g_strdup( oauth_params_get( ¶ms, "oauth_token_secret" ) ); oauth_params_free( ¶ms ); } @@ -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" ) ); } -- cgit v1.2.3