Permalink
Browse files

force PACKAGEVERSION to string, fixes #2030

  • Loading branch information...
1 parent 2a4c620 commit 88c1f21ffc41733ddaf226628de371847c058bb7 @Habbie Habbie committed with mind04 Dec 31, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/secpoll-auth.cc
@@ -125,7 +125,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+='.';
@@ -152,7 +152,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;
}

0 comments on commit 88c1f21

Please sign in to comment.