1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

bug 534: Part II.

This commit is contained in:
Witold Filipczyk 2007-08-02 15:16:30 +02:00 committed by Witold Filipczyk
parent b3845a7998
commit 61415bc08a

View File

@ -1051,7 +1051,7 @@ decompress_data(struct connection *conn, unsigned char *data, int len,
written = safe_write(conn->stream_pipes[1], data,
len > to_read ? to_read : len);
if (written > 0) {
if (written >= 0) {
data += written;
len -= written;
@ -1096,7 +1096,7 @@ decompress_data(struct connection *conn, unsigned char *data, int len,
}
} while (len || did_read == BIG_READ);
shutdown_connection_stream(conn);
if (state == FINISHING) shutdown_connection_stream(conn);
return output;
}