From 5d693684b93cb74c9ac18406513e58d216fd6f1d Mon Sep 17 00:00:00 2001 From: Steven Hartland Date: Mon, 9 Jan 2017 09:28:03 +0000 Subject: [PATCH] Fix rstat: symbol not in namelist from netstat Load kvm symbols earlier to prevent rstat: symbol not in namelist error when running netstat -rs. Submitted by: Sebastian Huber MFC after: 1 week Sponsored by: Multiplay --- usr.bin/netstat/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 4e4428d9d087..f26bf57c6b65 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -427,6 +427,9 @@ main(int argc, char *argv[]) if (xflag && Tflag) xo_errx(1, "-x and -T are incompatible, pick one."); + /* Load all necessary kvm symbols */ + kresolve_list(nl); + if (Bflag) { if (!live) usage(); @@ -507,9 +510,6 @@ main(int argc, char *argv[]) exit(0); } - /* Load all necessary kvm symbols */ - kresolve_list(nl); - if (tp) { xo_open_container("statistics"); printproto(tp, tp->pr_name, &first);