mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Add missing dereference; stop throwing zeroes around.
svn:r2702
This commit is contained in:
parent
11b2c6a476
commit
66779137bf
@ -670,7 +670,7 @@ int fetch_from_buf_control(buf_t *buf, uint16_t *len_out, uint16_t *type_out,
|
||||
if (len) {
|
||||
*body_out = tor_malloc(len+1);
|
||||
memcpy(*body_out, buf->mem+4, len);
|
||||
body_out[len] = '\0';
|
||||
(*body_out)[len] = '\0';
|
||||
} else {
|
||||
*body_out = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user