Project

General

Profile

Bug #375 ยป 0001-fix-for-bug-375-update-radix-test-that-wrongly-uses-.patch

Anoop Saldanha, 11/12/2011 10:37 AM

View differences:

src/util-radix-tree.c
if (node == NULL) {
goto end;
}
memset(node, 0x00, sizeof(node));
memset(node, 0x00, sizeof(*node));
void *ptr = SC_RADIX_NODE_USERDATA(node, void);
if (ptr != NULL) {
......
if (node == NULL) {
goto end;
}
memset(node, 0x00, sizeof(node));
memset(node, 0x00, sizeof(*node));
memset(&prefix, 0x00, sizeof(prefix));
node->prefix = &prefix;
......
if (node == NULL) {
goto end;
}
memset(node, 0x00, sizeof(node));
memset(node, 0x00, sizeof(*node));
memset(&prefix, 0x00, sizeof(prefix));
node->prefix = &prefix;
    (1-1/1)