summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-09 08:50:55 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-10 09:53:33 +0100
commit95a3ba82840ffe4dfd0cf5079a35eec16ae18525 (patch)
tree8e1f5bd10cf23a38457f4df12815a6e70aca41c6
parentb86b09782a338f7564bb6b28216717f77f756f84 (diff)
downloadrtems-libbsd-95a3ba82840ffe4dfd0cf5079a35eec16ae18525.tar.bz2
NETSTAT(1): Fix name list initialization
-rw-r--r--freebsd/usr.bin/netstat/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/freebsd/usr.bin/netstat/main.c b/freebsd/usr.bin/netstat/main.c
index a58ee648..1628036e 100644
--- a/freebsd/usr.bin/netstat/main.c
+++ b/freebsd/usr.bin/netstat/main.c
@@ -520,6 +520,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();
@@ -602,9 +605,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);