diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-05-25 13:22:06 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-05-25 13:22:06 +0200 |
commit | 0602496cb6cedc917abbd0a12468e9329c6967e1 (patch) | |
tree | 8a9430a7738cf4712a7e532a4e00fa02ee064deb /protocols/http_client.c | |
parent | 936ded65a76dac7a7af56ef3f1ad6c84a32270c6 (diff) |
Better handling of completely empty HTTP replies in http_client.c.
Diffstat (limited to 'protocols/http_client.c')
-rw-r--r-- | protocols/http_client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/http_client.c b/protocols/http_client.c index 5db31782..e181438c 100644 --- a/protocols/http_client.c +++ b/protocols/http_client.c @@ -239,6 +239,11 @@ static void http_incoming_data( gpointer data, int source, GaimInputCondition co return; got_reply: + /* Maybe if the webserver is overloaded, or when there's bad SSL + support... */ + if( req->bytes_read == 0 ) + goto cleanup; + /* Zero termination is very convenient. */ req->reply_headers[req->bytes_read] = 0; |