chiark / gitweb /
Consistency checks: Distinguish "entry" from exit
[adns.git] / src / check.c
index c773508d722d63d4fb6a4e2d371cb2b0210132d3..f6af1c7e606ef5157a8bb4c4e20c808478a5556e 100644 (file)
@@ -187,7 +187,10 @@ void adns__consistency(adns_state ads, adns_query qu, consistency_checks cc) {
   switch (cc) {
   case cc_user:
     break;
-  case cc_entex:
+  case cc_enter:
+    if (!(ads->iflags & adns_if_checkc_entex)) return;
+    break;
+  case cc_exit:
     if (!(ads->iflags & adns_if_checkc_entex)) return;
     assert(!ads->intdone.head);
     break;