diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-05-26 17:02:41 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2006-05-26 17:02:41 +0200 |
commit | 6fb6410be208b9a6ac4a3d407ac7a221e7d852b7 (patch) | |
tree | f1a4568f32a3fb2380b73d41f16cb8858b7c14e8 /protocols/http_client.c | |
parent | 1cda4f348372a755d99b291e6f4f9973a949f441 (diff) | |
parent | 60487448f3d0f3f7bb4710716e0ee257ee2edf16 (diff) |
[merge] Wilmer
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; |