*/
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);
// 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;
}