Enhanced update logic to respect not activated hostnames. If a hostname could not...
[bpdyndnsd] / src / service_dyndns.cpp
index 4dc4789..475d29e 100644 (file)
@@ -146,10 +146,12 @@ Service::UpdateErrorCode ServiceDyndns::perform_update(const std::string& ip)
         else if ( curl_data == "badauth" )
         {
             get_logger()->print_service_not_authorized(url,get_login(),get_password());
+            return NotAuth;
         }
         else
         {
             get_logger()->print_update_failure(url, curl_data);
+            return UpdateError;
         }
     }
     else