diff options
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 d686cfb8..1a431e25 100644 --- a/protocols/http_client.c +++ b/protocols/http_client.c @@ -239,6 +239,11 @@ static gboolean http_incoming_data( gpointer data, int source, b_input_condition  	return FALSE;  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; | 
