bugfix: on tcp read, realloc with *new* buffer sz

This commit is contained in:
Willem Toorop 2015-02-12 12:05:10 +01:00
parent cd098f9429
commit 04e2d4c2c1
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ stub_tcp_read(int fd, getdns_tcp_state *tcp, struct mem_funcs *mf)
buf_size *= 2;
if (!(buf = GETDNS_XREALLOC(*mf,
tcp->read_buf, uint8_t, tcp->read_buf_len)))
tcp->read_buf, uint8_t, buf_size)))
return STUB_TCP_ERROR;
tcp->read_buf = buf;