summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2011-11-01 10:14:07 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2011-11-01 10:14:07 +0000
commit1f607e86e96863e5ca0a865953dc55a9d968f440 (patch)
treed9841638804fead0cc445ec48095e6257a1b79fd /usr.bin
parenta6c6bb5107d367f9b2a62cc5048ca5dbe3a43e11 (diff)
Fixup previous: don't forget to actually get the current rtable;
reminded by Andreas Bartelt.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index aac2d3d10a8..468335df05d 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.90 2011/11/01 00:00:01 mikeb Exp $ */
+/* $OpenBSD: main.c,v 1.91 2011/11/01 10:14:06 mikeb Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
@@ -158,11 +158,12 @@ main(int argc, char *argv[])
char buf[_POSIX2_LINE_MAX];
gid_t gid;
u_long pcbaddr = 0;
- u_int tableid = 0;
+ u_int tableid;
int Tflag = 0;
int repeatcount = 0;
af = AF_UNSPEC;
+ tableid = getrtable();
while ((ch = getopt(argc, argv,
"AaBbc:dFf:gI:ilM:mN:np:P:qrsT:tuvW:w:")) != -1)