Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: udp/dns/dnsserver.cpp
- Revision:
- 22:914b970356f0
- Parent:
- 13:9cd54f7db57a
- Child:
- 32:679654f2d023
--- 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;