Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/mtrace PR/50966: David Binderman: Use all 3 of b, p...



details:   https://anonhg.NetBSD.org/src/rev/488a29491e7f
branches:  trunk
changeset: 344123:488a29491e7f
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 13 19:47:59 2016 +0000

description:
PR/50966: David Binderman: Use all 3 of b, p, n to determine if route changed

diffstat:

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

diffs (27 lines):

diff -r 54a50164caf3 -r 488a29491e7f usr.sbin/mtrace/mtrace.c
--- a/usr.sbin/mtrace/mtrace.c  Sun Mar 13 19:44:58 2016 +0000
+++ b/usr.sbin/mtrace/mtrace.c  Sun Mar 13 19:47:59 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mtrace.c,v 1.40 2014/02/27 17:43:35 joerg Exp $        */
+/*     $NetBSD: mtrace.c,v 1.41 2016/03/13 19:47:59 christos Exp $     */
 
 /*
  * mtrace.c
@@ -52,7 +52,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mtrace.c,v 1.40 2014/02/27 17:43:35 joerg Exp $");
+__RCSID("$NetBSD: mtrace.c,v 1.41 2016/03/13 19:47:59 christos Exp $");
 #endif
 
 #include <sys/types.h>
@@ -1094,7 +1094,7 @@
     }
 
     while (TRUE) {
-       if ((n->tr_inaddr != b->tr_inaddr) || (n->tr_inaddr != b->tr_inaddr))
+       if ((n->tr_inaddr != b->tr_inaddr) || (p->tr_inaddr != b->tr_inaddr))
          return 1;             /* Route changed */
 
        if ((n->tr_inaddr != n->tr_outaddr))



Home | Main Index | Thread Index | Old Index