Changed the comparing "good" update string to satisfy staticip, too.
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Fri, 19 Nov 2010 16:40:33 +0000 (17:40 +0100)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Fri, 19 Nov 2010 16:40:33 +0000 (17:40 +0100)
src/service_dyndns.cpp

index 8e49c53..eb261b8 100644 (file)
@@ -97,10 +97,6 @@ string ServiceDyndns::assemble_base_url(const string& fqhn) const
  */
 int ServiceDyndns::perform_update(const std::string& ip)
 {
-    // the result string if update was successful
-    string good = "good ";
-    good.append(ip);
-
     string url = BaseUrl;
     url.append(ip);
 
@@ -127,7 +123,7 @@ int ServiceDyndns::perform_update(const std::string& ip)
         // Note: We don't handle "nochg" as this shouldn't happen
         //       if only one client is active.
 
-        if ( curl_data == good )
+        if ( curl_data.compare(0,4,"good") == 0 )
         {
             return 0;
         }