diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-27 23:49:58 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-27 23:49:58 +0100 |
commit | 0bff877cf81754283eac52ee49fedc3872cd0d4c (patch) | |
tree | b05e5416240fed31001e056b04ee83540e9e92bd /lib/oauth.c | |
parent | 18dbb20242719f7537ad1a18a9a3befa2eefd502 (diff) |
Valgrind-clean now. And decent handling of errors (wrong PIN).
Diffstat (limited to 'lib/oauth.c')
-rw-r--r-- | lib/oauth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/oauth.c b/lib/oauth.c index 97017043..9fb83922 100644 --- a/lib/oauth.c +++ b/lib/oauth.c @@ -272,7 +272,7 @@ static void *oauth_post_request( const char *url, GSList **params_, http_input_f oauth_add_default_params( ¶ms ); params_s = oauth_params_string( params ); - oauth_params_free( params_ ); + oauth_params_free( ¶ms ); s = oauth_sign( "POST", url, params_s, NULL ); post = g_strdup_printf( "%s&oauth_signature=%s", params_s, s ); @@ -353,6 +353,8 @@ static void oauth_access_token_done( struct http_request *req ) { struct oauth_info *st = req->data; + st->http = req; + if( req->status_code == 200 ) { GSList *params = NULL; |