]> granicus.if.org Git - pdns/commitdiff
force PACKAGEVERSION to string in secpoll-recursor
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Wed, 31 Dec 2014 18:41:16 +0000 (18:41 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Wed, 31 Dec 2014 18:41:16 +0000 (18:41 +0000)
pdns/secpoll-recursor.cc

index 96c8a46e844522d524972a24c12390df148d2a87..0c56e72df5154b848ecb7a043ac8d1447b0741b3 100644 (file)
@@ -23,7 +23,7 @@ void doSecPoll(time_t* last_secpoll)
   
   vector<DNSResourceRecord> ret;
 
-  string query = "recursor-" +PACKAGEVERSION+ ".security-status."+::arg()["security-poll-suffix"];
+  string query = "recursor-" +string(PACKAGEVERSION)+ ".security-status."+::arg()["security-poll-suffix"];
 
   if(*query.rbegin()!='.')
     query+='.';
@@ -46,7 +46,7 @@ void doSecPoll(time_t* last_secpoll)
     *last_secpoll=now.tv_sec;
   }
   else {
-    L<<Logger::Warning<<"Could not retrieve security status update for '" +PACKAGEVERSION+ "' on '"+query+"', RCODE = "<< RCode::to_s(res)<<endl;
+    L<<Logger::Warning<<"Could not retrieve security status update for '" +string(PACKAGEVERSION)+ "' on '"+query+"', RCODE = "<< RCode::to_s(res)<<endl;
     if(g_security_status == 1) // it was ok, not it is unknown
       g_security_status = 0;
     if(res == RCode::NXDomain) // if we had servfail, keep on trying more more frequently