From 2db811a764d70734cfe2d9e0992430e2f7fc53e9 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 17 Dec 2005 20:07:07 +0100 Subject: Small memory leak fixed. --- protocols/http_client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'protocols/http_client.c') diff --git a/protocols/http_client.c b/protocols/http_client.c index fa735426..17745b08 100644 --- a/protocols/http_client.c +++ b/protocols/http_client.c @@ -340,6 +340,7 @@ got_reply: if( req->fd < 0 ) error = 1; } + g_free( new_host ); if( error ) { -- cgit v1.2.3 From f3e1e9257bacc129b5ce9d18001f7ee99593d74d Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 17 Dec 2005 20:13:32 +0100 Subject: Fixed parameter ordering. --- protocols/http_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/http_client.c') diff --git a/protocols/http_client.c b/protocols/http_client.c index 17745b08..bbf7a282 100644 --- a/protocols/http_client.c +++ b/protocols/http_client.c @@ -36,7 +36,7 @@ static void http_ssl_connected( gpointer data, void *source, GaimInputCondition static void http_incoming_data( gpointer data, int source, GaimInputCondition cond ); -void *http_dorequest( char *host, int port, http_input_function func, int ssl, char *request, gpointer data ) +void *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data ) { struct http_request *req; int error = 0; -- cgit v1.2.3 From ad8b8a367c8e5dd2816096959682e2187df07c6c Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 17 Dec 2005 21:54:06 +0100 Subject: Passport authentication works now. --- protocols/http_client.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'protocols/http_client.c') diff --git a/protocols/http_client.c b/protocols/http_client.c index bbf7a282..51424e1c 100644 --- a/protocols/http_client.c +++ b/protocols/http_client.c @@ -163,7 +163,13 @@ static void http_incoming_data( gpointer data, int source, GaimInputCondition co { if( ssl_errno != SSL_AGAIN ) { - goto cleanup; + /* goto cleanup; */ + + /* YAY! We have to deal with crappy Microsoft + servers that LOVE to send invalid TLS + packets that abort connections! \o/ */ + + goto got_reply; } } else if( st == 0 ) -- cgit v1.2.3