Author: hrs
Date: Wed Nov 16 03:51:15 2016
New Revision: 308715
URL: https://svnweb.freebsd.org/changeset/base/308715

Log:
  MFC r308347:
  
    Fix an infinite loop at an non-responding hop when other echo replies
    are kept arriving in the waittime time window.
  
    Submitted by: Denny Page
    PR:           210286

Modified:
  stable/10/usr.sbin/traceroute6/traceroute6.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/traceroute6/traceroute6.c
==============================================================================
--- stable/10/usr.sbin/traceroute6/traceroute6.c        Wed Nov 16 03:51:05 
2016        (r308714)
+++ stable/10/usr.sbin/traceroute6/traceroute6.c        Wed Nov 16 03:51:15 
2016        (r308715)
@@ -955,6 +955,9 @@ main(argc, argv)
                                                break;
                                        }
                                        break;
+                               } else if (deltaT(&t1, &t2) > waittime * 1000) {
+                                       cc = 0;
+                                       break;
                                }
                        }
                        if (cc == 0)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to