Re: [PATCH] selinux-testsuite: Correct address count for asconf sctp test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 3, 2019 at 6:13 AM Richard Haines
<richard_c_haines@xxxxxxxxxxxxxx> wrote:
>
> 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(-)

Merged into master, thanks.

> 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
>


-- 
paul moore
www.paul-moore.com



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux