]> granicus.if.org Git - pdns/commitdiff
force PACKAGEVERSION to string, fixes #2030
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Wed, 31 Dec 2014 16:58:06 +0000 (16:58 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Wed, 31 Dec 2014 16:58:06 +0000 (16:58 +0000)
pdns/secpoll-auth.cc

index 137753a5822b1c37b4fb20080d0981c1f80ad843..84b3a1a91424341f282100735a5f942b9dad9df9 100644 (file)
@@ -124,7 +124,7 @@ void doSecPoll(bool first)
   struct timeval now;
   gettimeofday(&now, 0);
 
-  string query = "auth-" +PACKAGEVERSION +".security-status."+::arg()["security-poll-suffix"];
+  string query = "auth-" + string(PACKAGEVERSION) +".security-status."+::arg()["security-poll-suffix"];
 
   if(*query.rbegin()!='.')
     query+='.';
@@ -151,7 +151,7 @@ void doSecPoll(bool first)
 
   }
   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(security_status == 1) // it was ok, not it is unknown
       security_status = 0;
   }