Hello folks,

  I am Rakesh Pandit and have wish to working on factoring code 'ping
vs ping6 vs libicmp'

            Attached is small patch for preventing this Segmentation
fault with ping6 -c option.
May some folks do a peer review?

May I move ping.h libping.c from libicmp to ping as specified here?
and submit necessary
patches? :

http://lists.gnu.org/archive/html/bug-inetutils/2008-06/msg00014.html

Thanks,

-- 
Rakesh Pandit

Index: ping6.c
===================================================================
RCS file: /sources/inetutils/inetutils/ping/ping6.c,v
retrieving revision 1.11
diff -u -r1.11 ping6.c
--- ping6.c     6 Jun 2008 16:43:43 -0000       1.11
+++ ping6.c     17 Aug 2008 09:16:48 -0000
@@ -172,10 +172,11 @@
   if (getuid () == 0)
     is_root = true;

+  ping = ping_init (0, getpid ());
+
   /* Parse command line */
   argp_parse (&argp, argc, argv, 0, &index, NULL);

-  ping = ping_init (0, getpid ());
   if (ping == NULL)
     /* ping_init() prints our error message.  */
     exit (1);


_______________________________________________
bug-inetutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-inetutils

Reply via email to