Fix 'occurred' typo
[bpdyndnsd] / src / service_gnudip.cpp
index 76b9420..3f35cfd 100644 (file)
@@ -300,7 +300,7 @@ Service::UpdateErrorCode ServiceGnudip::perform_update(const std::string& ip)
             }
 
             // Now its time to issue the second http_get operation
-            string url = assemble_update_url(salt, sign_time, sign, secret, ip);
+            string url = this->assemble_update_url(salt, sign_time, sign, secret, ip);
 
             // perform the update operation
             http_status_code = HTTPHelp->http_get(url);
@@ -319,10 +319,12 @@ Service::UpdateErrorCode ServiceGnudip::perform_update(const std::string& ip)
                 else if ( update_return_code == "1" )
                 {
                     get_logger()->print_service_not_authorized(url,get_login(),get_password());
+                    return NotAuth;
                 }
                 else
                 {
                     get_logger()->print_update_failure(url,update_return_code);
+                    return UpdateError;
                 }
             }
             else