Module Name:    src
Committed By:   christos
Date:           Sun Mar 13 19:47:59 UTC 2016

Modified Files:
        src/usr.sbin/mtrace: mtrace.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/usr.sbin/mtrace/mtrace.c

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

Modified files:

Index: src/usr.sbin/mtrace/mtrace.c
diff -u src/usr.sbin/mtrace/mtrace.c:1.40 src/usr.sbin/mtrace/mtrace.c:1.41
--- src/usr.sbin/mtrace/mtrace.c:1.40	Thu Feb 27 12:43:35 2014
+++ src/usr.sbin/mtrace/mtrace.c	Sun Mar 13 15:47:59 2016
@@ -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 @@ print_stats(struct resp_buf *basep, stru
     }
 
     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))

Reply via email to