The address count only checks the first two entries, correct to check others in list until two addresses are found, or not. Signed-off-by: Richard Haines <richard_c_haines@xxxxxxxxxxxxxx> --- tests/sctp/test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sctp/test b/tests/sctp/test index 472bd77..ae1b5e5 100755 --- a/tests/sctp/test +++ b/tests/sctp/test @@ -33,8 +33,8 @@ BEGIN { for my $line ( split /\n/, $ipaddress_list ) { if ( $line =~ /inet ([^ \/]+)/ && $count < 2 ) { $ipaddress[$count] = $1; + $count++; } - $count++; } if ( $ipaddress[1] ne 0 ) { -- 2.21.0