Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
01e41f88
Commit
01e41f88
authored
May 09, 2013
by
Mark Andrews
Browse files
check for data being null
parent
2da39075
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/tests/rbt_test.c
View file @
01e41f88
...
...
@@ -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
)
||
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment