1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

Fix data: protocol

Increment conn->from by the length of the data so that when
abort_connection calls normalize_cache_entry, it doesn't truncate the
cache entry to 0 length.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-06-08 17:42:27 +00:00 committed by Miciah Dashiel Butler Masters
parent a72a0dab08
commit 8c3d7a8e72

@ -157,6 +157,7 @@ data_protocol_handler(struct connection *conn)
int datalen = strlen(data);
add_fragment(cached, conn->from, data, datalen);
conn->from += datalen;
}
mem_free(data);