=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/route.c,v retrieving revision 1.103 retrieving revision 1.104 diff -u -r1.103 -r1.104 --- src/usr.bin/netstat/route.c 2019/05/10 01:29:31 1.103 +++ src/usr.bin/netstat/route.c 2019/06/28 13:35:02 1.104 @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.103 2019/05/10 01:29:31 guenther Exp $ */ +/* $OpenBSD: route.c,v 1.104 2019/06/28 13:35:02 deraadt Exp $ */ /* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */ /* @@ -330,7 +330,7 @@ mib[5] = 0; size = sizeof (rtstat); - if (sysctl(mib, 6, &rtstat, &size, NULL, 0) < 0) { + if (sysctl(mib, 6, &rtstat, &size, NULL, 0) == -1) { perror("sysctl of routing table statistics"); exit(1); }