From: Bjoern Sikora Date: Fri, 19 Nov 2010 16:40:33 +0000 (+0100) Subject: Changed the comparing "good" update string to satisfy staticip, too. X-Git-Tag: v1.1~31 X-Git-Url: http://developer.intra2net.com/git/?p=bpdyndnsd;a=commitdiff_plain;h=ffac95406faf675121359a87e27592690f28cd99 Changed the comparing "good" update string to satisfy staticip, too. --- diff --git a/src/service_dyndns.cpp b/src/service_dyndns.cpp index 8e49c53..eb261b8 100644 --- a/src/service_dyndns.cpp +++ b/src/service_dyndns.cpp @@ -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; }