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:
@@ -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) ||
|
||||
|
Reference in New Issue
Block a user