Commit 01e41f88 authored by Mark Andrews's avatar Mark Andrews
Browse files

check for data being null

parent 2da39075
......@@ -150,7 +150,11 @@ fix_data(dns_rbtnode_t *p, void *base, size_t max, isc_sha1_t *sha1) {
REQUIRE(sha1 != NULL);
REQUIRE(p != NULL);
printf("fixing data: len %d, data %p\n", data->len, data->data);
if (data == NULL)
printf("fixing data: data NULL\n");
else
printf("fixing data: len %d, data %p\n", data->len, data->data);
if (data == NULL ||
(data->len == 0 && data->data != NULL) ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment