From 3ece2017e978dbea8715c21b07d18f495e7d8502 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 21 Jul 2024 20:51:10 -0400 Subject: [PATCH] freemyip: Skip headers before processing response This isn't strictly necessary but improves readability and consistency. --- ddclient.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index 1a26c1d..2086e77 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6424,7 +6424,8 @@ sub nic_freemyip_update { next; } next if !header_ok($h, $reply); - my @reply = split /\n/, $reply; + (my $body = $reply) =~ s/^.*?\n\n//s; + my @reply = split(/\n/, $body); my $returned = pop(@reply); if ($returned !~ /OK/) { failed("$h: Server said: $returned");