From 93d4a89096e64d53740790f58fadec56f6a0af14 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 6 Jan 2015 12:48:54 +0100 Subject: [PATCH] kill some mallocs we were doing for EDNS PING which we don't use right now --- pdns/lwres.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/lwres.cc b/pdns/lwres.cc index 8830a11e4..aa863bdff 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -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)); } -- 2.40.0