2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

check for data being null

This commit is contained in:
Mark Andrews
2013-05-09 21:29:57 +10:00
parent 2da39075c8
commit 01e41f88b0

View File

@@ -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) ||