diff --git a/ddclient.in b/ddclient.in index 29cb85f..747346a 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6259,7 +6259,7 @@ sub nic_yandex_update { # Strip header $reply =~ s/^.*?\n\n//s; my $response = eval { decode_json($reply) }; - if ($response->{success} eq 'error') { + if ($response->{success} ne 'ok') { failed("%s", $response->{error}); next; } @@ -6296,7 +6296,7 @@ sub nic_yandex_update { # Strip header $reply =~ s/^.*?\n\n//s; $response = eval { decode_json($reply) }; - if ($response->{success} eq 'error') { + if ($response->{success} ne 'ok') { failed("%s", $response->{error}); next; }