mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Fix DNS test for new function template
This commit is contained in:
@@ -81,7 +81,7 @@ o.debugging = 1;
|
|||||||
DNS::RECORD_TYPE rt = DNS::A;
|
DNS::RECORD_TYPE rt = DNS::A;
|
||||||
const size_t buflen = 1500;
|
const size_t buflen = 1500;
|
||||||
u8 buf[buflen];
|
u8 buf[buflen];
|
||||||
size_t reqlen = DNS::Factory::buildSimpleRequest(target, rt, buf, buflen);
|
size_t reqlen = DNS::Factory::buildSimpleRequest(0xdead, target, rt, buf, buflen);
|
||||||
|
|
||||||
DNS::Packet p;
|
DNS::Packet p;
|
||||||
size_t plen = p.parseFromBuffer(buf, buflen);
|
size_t plen = p.parseFromBuffer(buf, buflen);
|
||||||
|
|||||||
Reference in New Issue
Block a user