if (dns_rdataset_isassociated(&nsecset) &&
dns_rdataset_isassociated(&nsec3paramset))
{
- if (build_nsec != NULL) {
- *build_nsec = true;
- }
- if (build_nsec3 != NULL) {
- *build_nsec3 = true;
- }
+ SET_IF_NOT_NULL(build_nsec, true);
+ SET_IF_NOT_NULL(build_nsec3, true);
goto success;
}
* Look to see if we also need to be creating a NSEC3 chain.
*/
if (dns_rdataset_isassociated(&nsecset)) {
- if (build_nsec != NULL) {
- *build_nsec = true;
- }
- if (build_nsec3 != NULL) {
- *build_nsec3 = false;
- }
+ SET_IF_NOT_NULL(build_nsec, true);
+ SET_IF_NOT_NULL(build_nsec3, false);
if (!dns_rdataset_isassociated(&privateset)) {
goto success;
}
}
if (dns_rdataset_isassociated(&nsec3paramset)) {
- if (build_nsec3 != NULL) {
- *build_nsec3 = true;
- }
- if (build_nsec != NULL) {
- *build_nsec = false;
- }
+ SET_IF_NOT_NULL(build_nsec3, true);
+ SET_IF_NOT_NULL(build_nsec, false);
if (!dns_rdataset_isassociated(&privateset)) {
goto success;
}
goto success;
}
- if (build_nsec != NULL) {
- *build_nsec = false;
- }
- if (build_nsec3 != NULL) {
- *build_nsec3 = false;
- }
+ SET_IF_NOT_NULL(build_nsec, false);
+ SET_IF_NOT_NULL(build_nsec3, false);
if (!dns_rdataset_isassociated(&privateset)) {
goto success;
}
return result;
}
- if (ntap != NULL) {
- *ntap = false;
- }
+ SET_IF_NOT_NULL(ntap, false);
if (checknta && secure && view->ntatable_priv != NULL &&
dns_ntatable_covered(view->ntatable_priv, now, name, anchor))
{