Source-Changes-HG archive

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

[src/netbsd-6]: src/sbin/ping6 Pull up following revision(s) (requested by ms...



details:   https://anonhg.NetBSD.org/src/rev/621f7f8a81c2
branches:  netbsd-6
changeset: 775378:621f7f8a81c2
user:      riz <riz%NetBSD.org@localhost>
date:      Mon Oct 22 19:45:46 2012 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #614):
        sbin/ping6/ping6.c: revision 1.81
Accept "-s 0"

diffstat:

 sbin/ping6/ping6.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ece47dd39f5a -r 621f7f8a81c2 sbin/ping6/ping6.c
--- a/sbin/ping6/ping6.c        Mon Oct 22 19:43:58 2012 +0000
+++ b/sbin/ping6/ping6.c        Mon Oct 22 19:45:46 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ping6.c,v 1.80 2012/01/04 16:09:42 drochner Exp $      */
+/*     $NetBSD: ping6.c,v 1.80.2.1 2012/10/22 19:45:46 riz Exp $       */
 /*     $KAME: ping6.c,v 1.164 2002/11/16 14:05:37 itojun Exp $ */
 
 /*
@@ -77,7 +77,7 @@
 #else
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ping6.c,v 1.80 2012/01/04 16:09:42 drochner Exp $");
+__RCSID("$NetBSD: ping6.c,v 1.80.2.1 2012/10/22 19:45:46 riz Exp $");
 #endif
 #endif
 
@@ -504,7 +504,7 @@
                        break;
                case 's':               /* size of packet to send */
                        datalen = strtol(optarg, &e, 10);
-                       if (datalen <= 0 || *optarg == '\0' || *e != '\0')
+                       if (datalen < 0 || *optarg == '\0' || *e != '\0')
                                errx(1, "illegal datalen value -- %s", optarg);
                        if (datalen > MAXDATALEN) {
                                errx(1,



Home | Main Index | Thread Index | Old Index