Small fix to ff43d35aeef6178f7471c6f37e91845c9a72bd2f
authorSimon Kelley <simon@thekelleys.org.uk>
Wed, 12 Jan 2022 23:00:16 +0000 (23:00 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Wed, 12 Jan 2022 23:00:16 +0000 (23:00 +0000)
src/cache.c

index fb80d86..1ee19e0 100644 (file)
@@ -2059,7 +2059,12 @@ void log_query(unsigned int flags, char *name, union all_addr *addr, char *arg,
     }
   else if (flags & F_AUTH)
     source = "auth";
-  else if (flags & F_SERVER)
+   else if (flags & F_DNSSEC)
+    {
+      source = arg;
+      verb = "to";
+    }
+   else if (flags & F_SERVER)
     {
       source = "forwarded";
       verb = "to";
@@ -2069,11 +2074,6 @@ void log_query(unsigned int flags, char *name, union all_addr *addr, char *arg,
       source = arg;
       verb = "from";
     }
-  else if (flags & F_DNSSEC)
-    {
-      source = arg;
-      verb = "to";
-    }
   else if (flags & F_IPSET)
     {
       source = type ? "ipset add" : "nftset add";