More null deref fixes for util-radix-tree.c

remotes/origin/master-1.0.x
William Metcalf 16 years ago committed by Victor Julien
parent 54da99fe53
commit 0fc8f6cc37

@ -3877,6 +3877,11 @@ int SCRadixTestIPV6NetBlocksAndBestSearch24(void)
}
user = SCMalloc(sizeof(uint32_t));
if (user == NULL) {
result = 0;
goto end;
}
*user = 100;
SCRadixAddKeyIPV6Netblock((uint8_t *)&servaddr.sin6_addr, tree, user, 0);
@ -3978,6 +3983,11 @@ int SCRadixTestIPV6NetBlocksAndBestSearch24(void)
}
user = SCMalloc(sizeof(uint32_t));
if (user == NULL) {
result = 0;
goto end;
}
*user = 300;
SCRadixAddKeyIPV6Netblock((uint8_t *)&servaddr.sin6_addr, tree, user, 12);

Loading…
Cancel
Save