Permalink
Browse files

kill some mallocs we were doing for EDNS PING which we don't use righ…

…t now
  • Loading branch information...
1 parent 4185c68 commit 93d4a89096e64d53740790f58fadec56f6a0af14 @ahupowerdns ahupowerdns committed Jan 6, 2015
Showing with 3 additions and 3 deletions.
  1. +3 −3 pdns/lwres.cc
View
@@ -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));
}

0 comments on commit 93d4a89

Please sign in to comment.