]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
do not complain if no security status was found for a git version
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 28 May 2015 12:45:31 +0000 (14:45 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 28 May 2015 12:45:31 +0000 (14:45 +0200)
pdns/secpoll-auth.cc
pdns/secpoll-recursor.cc

index f5424b00c2bab45e04388c873ce10ce6067ff743..fb27bf622ab257348597df7048adae247df75bf2 100644 (file)
@@ -166,7 +166,9 @@ void doSecPoll(bool first)
 
   }
   else {
-    L<<Logger::Warning<<"Could not retrieve security status update for '" + string(PACKAGEVERSION) + "' on '"+query+"', RCODE = "<< RCode::to_s(res)<<endl;
+    string pkgv(PACKAGEVERSION);
+    if(pkgv.find("git"))
+      L<<Logger::Warning<<"Could not retrieve security status update for '" + pkgv + "' on '"+query+"', RCODE = "<< RCode::to_s(res)<<endl;
     if(security_status == 1) // it was ok, not it is unknown
       security_status = 0;
   }
index c44d665fdede499feb7533f2c0ca13b865d53fd0..e70d896013dbe3a9fe8591b361b0c24e81c09c31 100644 (file)
@@ -50,7 +50,9 @@ void doSecPoll(time_t* last_secpoll)
     *last_secpoll=now.tv_sec;
   }
   else {
-    L<<Logger::Warning<<"Could not retrieve security status update for '" +string(PACKAGEVERSION)+ "' on '"+query+"', RCODE = "<< RCode::to_s(res)<<endl;
+    string pkgv(PACKAGEVERSION);
+    if(pkgv.find("git"))
+      L<<Logger::Warning<<"Could not retrieve security status update for '" +pkgv+ "' 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