Module Name:    src
Committed By:   roy
Date:           Sat Mar 24 15:51:57 UTC 2018

Modified Files:
        src/tests/net/icmp: t_ping.c

Log Message:
Allow a valid sendto .... duh


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/tests/net/icmp/t_ping.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/net/icmp/t_ping.c
diff -u src/tests/net/icmp/t_ping.c:1.21 src/tests/net/icmp/t_ping.c:1.22
--- src/tests/net/icmp/t_ping.c:1.21	Sat Mar 24 00:06:32 2018
+++ src/tests/net/icmp/t_ping.c	Sat Mar 24 15:51:57 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_ping.c,v 1.21 2018/03/24 00:06:32 kamil Exp $	*/
+/*	$NetBSD: t_ping.c,v 1.22 2018/03/24 15:51:57 roy Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: t_ping.c,v 1.21 2018/03/24 00:06:32 kamil Exp $");
+__RCSID("$NetBSD: t_ping.c,v 1.22 2018/03/24 15:51:57 roy Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -420,6 +420,8 @@ ATF_TC_BODY(ping_of_death, tc)
 
 			error = rump_sys_sendto(s, data, frag, 0,
 			    (struct sockaddr *)&dst, sizeof(dst));
+			if (error == sizeof(dst))
+				continue;
 			if (error == -1 && errno == ENOBUFS)
 				continue;
 			atf_tc_fail_errno("sendto failed");

Reply via email to