diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-27 09:09:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-27 09:09:00 -0400 |
commit | b8b016940d76d014e49d87c7030854a30f51bdad (patch) | |
tree | d7955f6ef72b4e92aad3c0d8887e2e16dea83aff /src/or/proto_cell.c | |
parent | 8f8a4c0ced456661c3c5f20dfc9c14157ade4e35 (diff) | |
download | tor-b8b016940d76d014e49d87c7030854a30f51bdad.tar.gz tor-b8b016940d76d014e49d87c7030854a30f51bdad.zip |
Add unit tests for var_cell and control0 proto functions.
Diffstat (limited to 'src/or/proto_cell.c')
-rw-r--r-- | src/or/proto_cell.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/proto_cell.c b/src/or/proto_cell.c index 4485ab4e9e..75eb2a7e7f 100644 --- a/src/or/proto_cell.c +++ b/src/or/proto_cell.c @@ -66,6 +66,7 @@ fetch_var_cell_from_buf(buf_t *buf, var_cell_t **out, int linkproto) length = ntohs(get_uint16(hdr + circ_id_len + 1)); if (buf_datalen(buf) < (size_t)(header_len+length)) return 1; + result = var_cell_new(length); result->command = command; if (wide_circ_ids) |