From ffac95406faf675121359a87e27592690f28cd99 Mon Sep 17 00:00:00 2001 From: Bjoern Sikora Date: Fri, 19 Nov 2010 17:40:33 +0100 Subject: [PATCH] Changed the comparing "good" update string to satisfy staticip, too. --- src/service_dyndns.cpp | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) 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; } -- 1.7.1