summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-12-26 19:17:24 -0500
committerNick Mathewson <nickm@torproject.org>2014-12-26 19:17:24 -0500
commiteda5cebd6c334c3e6fa82c6623f33592a8f77e60 (patch)
treeda0fe6b56a1631d1b84447cc9bd760ab41a925bc
parent38af3b983fd4a80787d0ccd7c459084f2214464b (diff)
downloadtor-eda5cebd6c334c3e6fa82c6623f33592a8f77e60.tar.gz
tor-eda5cebd6c334c3e6fa82c6623f33592a8f77e60.zip
Add another cellintptr use; fixes 14031
-rw-r--r--src/test/test_channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_channel.c b/src/test/test_channel.c
index 59f4596f74..82a5f44437 100644
--- a/src/test/test_channel.c
+++ b/src/test/test_channel.c
@@ -1406,6 +1406,7 @@ test_channel_queue_impossible(void *arg)
ch->state = CHANNEL_STATE_MAINT;
cell = tor_malloc_zero(sizeof(cell_t));
make_fake_cell(cell);
+ cellintptr = (uintptr_t)(void*)cell;
channel_write_cell(ch, cell);
/* Check that it's queued */
@@ -1414,7 +1415,7 @@ test_channel_queue_impossible(void *arg)
tt_assert(q);
if (q) {
tt_int_op(q->type, ==, CELL_QUEUE_FIXED);
- tt_ptr_op(q->u.fixed.cell, ==, cell);
+ tt_assert((uintptr_t)q->u.fixed.cell == cellintptr);
}
/* Clobber it, including the queue entry type */
tor_free(q->u.fixed.cell);