to determine if route changed".
Spotted by the Echelon team with AppChecker static analyzer.
NetBSD fix pointed out by millert@
-/* $OpenBSD: mtrace.c,v 1.35 2016/03/07 00:16:35 mmcc Exp $ */
+/* $OpenBSD: mtrace.c,v 1.36 2016/08/03 23:22:48 krw Exp $ */
/* $NetBSD: mtrace.c,v 1.5 1995/12/10 10:57:15 mycroft Exp $ */
/*
}
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))