Dyndns: Better handling for nochg and abuse return codes: Log them as unsuccessful...
[bpdyndnsd] / src / service_dyndns.cpp
index 5d7b8b8..4dc4789 100644 (file)
@@ -134,14 +134,14 @@ Service::UpdateErrorCode ServiceDyndns::perform_update(const std::string& ip)
             // IP didn't change, this might indicate a problem at the
             // dyndns backend or another client is running elsewhere.
             get_logger()->print_update_failure(url, curl_data);
-            return UpdateOk;
+            return NoChange;
         }
         else if (curl_data.compare(0,5,"abuse") == 0 )
         {
             // Account is blocked. Log it as a successful update
             // so the IP address will be "burnt" until it changes.
             get_logger()->print_update_failure(url, curl_data);
-            return UpdateOk;
+            return Blocked;
         }
         else if ( curl_data == "badauth" )
         {