Previously it would sigsegv (accessing (void *) -1), instead of displaying error.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36745
f5534014-38df-0310-8fa8-
9805f1628bb7
while (canary_next != NULL) {
canary_next = emem_canary_next(ep_packet_mem.canary, canary_next, NULL);
- /* XXX, check if canary_last is inside allocated memory? */
+ /* XXX, check if canary_next is inside allocated memory? */
- if (npc->canary_last == (void *) -1)
+ if (canary_next == (void *) -1)
g_error("Per-packet memory corrupted\nbetween: %s\nand: %s", there, here);
}
}