]> granicus.if.org Git - pdns/commitdiff
also support running w/o lua
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 20 Jan 2016 15:51:38 +0000 (16:51 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 20 Jan 2016 20:51:37 +0000 (21:51 +0100)
pdns/pdns_recursor.cc

index 31a92b0e935f7aa85d7695877790425afc37f5ad..c66a899568f407b510a17c32c3821f95eadfce01 100644 (file)
@@ -1150,7 +1150,7 @@ string* doProcessUDPQuestion(const std::string& question, const ComboAddress& fr
     g_mtracer->clearAllocators();
     */
 #endif
-    if((*t_pdl)->d_gettag) {
+    if(t_pdl->get() && (*t_pdl)->d_gettag) {
       unsigned int consumed=0;
       uint16_t qtype=0;
       DNSName qname(question.c_str(), question.length(), sizeof(dnsheader), false, &qtype, 0, &consumed);