Author: smh
Date: Mon Jan 16 09:12:40 2017
New Revision: 312278
URL: https://svnweb.freebsd.org/changeset/base/312278

Log:
  MFC r311769:
  
  Fix rstat: symbol not in namelist from netstat
  
  Sponsored by: Multiplay

Modified:
  stable/10/usr.bin/netstat/main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/netstat/main.c
==============================================================================
--- stable/10/usr.bin/netstat/main.c    Mon Jan 16 08:25:33 2017        
(r312277)
+++ stable/10/usr.bin/netstat/main.c    Mon Jan 16 09:12:40 2017        
(r312278)
@@ -535,6 +535,9 @@ main(int argc, char *argv[])
        if (xflag && Tflag) 
                errx(1, "-x and -T are incompatible, pick one.");
 
+       /* Load all necessary kvm symbols */
+       kresolve_list(nl);
+
        if (Bflag) {
                if (!live)
                        usage();
@@ -603,9 +606,6 @@ main(int argc, char *argv[])
                exit(0);
        }
 
-       /* Load all necessary kvm symbols */
-       kresolve_list(nl);
-
        if (tp) {
                printproto(tp, tp->pr_name);
                exit(0);
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to