On Sat, 2009-04-25 at 18:03 +0200, Jiri Palecek > wrote: 
> Signed-off-by: Jiri Palecek <[email protected]>

Thanks.

Regards--
Subrata

> ---
>  testcases/network/ipv6/sendfile6/testsf_s6.c |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/testcases/network/ipv6/sendfile6/testsf_s6.c 
> b/testcases/network/ipv6/sendfile6/testsf_s6.c
> index fab2b17..a7ae05c 100644
> --- a/testcases/network/ipv6/sendfile6/testsf_s6.c
> +++ b/testcases/network/ipv6/sendfile6/testsf_s6.c
> @@ -61,10 +61,14 @@ char *argv[];
> 
>    memset(&hints, 0, sizeof(hints));
>    hints.ai_family = PF_INET6;
> -  if ((gai=getaddrinfo(argv[1], NULL, &hints, &hp))!=0)
> +  if ((gai=getaddrinfo(argv[1], NULL, &hints, &hp))!=0) {
>          fprintf(stderr, "Unknown subject address %s: %s\n",argv[1], 
> gai_strerror(gai));
> -  if (!hp->ai_addr || hp->ai_addr->sa_family != AF_INET6)
> +        exit(1);
> +  }
> +  if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AF_INET6) {
>          fprintf(stderr, "getaddrinfo failed");
> +        exit(1);
> +  }
> 
> 
>    /* server IP and port */


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to