Skip to content

Commit

Permalink
kill some mallocs we were doing for EDNS PING which we don't use righ…
Browse files Browse the repository at this point in the history
…t now
  • Loading branch information
ahupowerdns committed Jan 6, 2015
1 parent 4185c68 commit 93d4a89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pdns/lwres.cc
Expand Up @@ -63,12 +63,12 @@ int asyncresolve(const ComboAddress& ip, const string& domain, int type, bool do

string ping;

uint32_t nonce=dns_random(0xffffffff);
ping.assign((char*) &nonce, 4);

if(EDNS0Level && !doTCP) {
DNSPacketWriter::optvect_t opts;
if(EDNS0Level > 1) {
uint32_t nonce=dns_random(0xffffffff);
ping.assign((char*) &nonce, 4);

opts.push_back(make_pair(5, ping));
}

Expand Down

0 comments on commit 93d4a89

Please sign in to comment.