]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add another cellintptr use; fixes 14031
authorNick Mathewson <nickm@torproject.org>
Sat, 27 Dec 2014 00:17:24 +0000 (19:17 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 27 Dec 2014 00:17:24 +0000 (19:17 -0500)
src/test/test_channel.c

index 59f4596f742c11ca7ab62a609dd73556f96ef65a..82a5f44437170e10b1a23ec3afeb4f8d66739df8 100644 (file)
@@ -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);