Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Revision:
22:914b970356f0
Parent:
13:9cd54f7db57a
Child:
32:679654f2d023
diff -r 02c82594c8c0 -r 914b970356f0 udp/dns/dnsserver.cpp
--- a/udp/dns/dnsserver.cpp	Thu Jun 29 19:42:28 2017 +0000
+++ b/udp/dns/dnsserver.cpp	Mon Jul 03 14:29:07 2017 +0000
@@ -14,8 +14,16 @@
 {    
     if (DEBUG) DnsHdrLog("server received query", dnsProtocol);
     
-    if (       *pSize > 512) { LogTimeF("DnsServerHandleQuery length %d too long\r\n",  *pSize); return DO_NOTHING; }
-    if (DnsHdrQdcount >   4) { LogTimeF("DnsServerHandleQuery too many queries %d\r\n", *pSize); return DO_NOTHING; }
+    if (       *pSize > 512)
+    {
+        if (DEBUG) LogTimeF("DnsServerHandleQuery length %d too long\r\n",  *pSize);
+        return DO_NOTHING;
+    }
+    if (DnsHdrQdcount >   4)
+    {
+        if (DEBUG) LogTimeF("DnsServerHandleQuery too many queries %d\r\n", *pSize);
+        return DO_NOTHING;
+    }
     
     char *p = DnsHdrData;