Enhanced update logic to respect not activated hostnames. If a hostname could not...
[bpdyndnsd] / src / service_ods.cpp
index 60d4354..d6a3bec 100644 (file)
@@ -115,7 +115,7 @@ Service::UpdateErrorCode ServiceOds::perform_update(const std::string& ip)
             // Login failed
             get_logger()->print_service_not_authorized(UpdateServer,get_login(),get_password());
             connection->close_connection(); /*lint !e534 */
-            return GenericError;
+            return NotAuth;
         }
         else if ( status_code != "225" )
         {
@@ -177,7 +177,7 @@ Service::UpdateErrorCode ServiceOds::perform_update(const std::string& ip)
         {
             get_logger()->print_undefined_protocol_error("ODS",update_reply);
             connection->close_connection(); /*lint !e534 */
-            return GenericError;
+            return UpdateError;
         }
     }