summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index c0e4381..5f01f8e 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -460,7 +460,7 @@ main(argc, argv)
*/
#endif
if (iflag) {
- if (af != AF_UNSPEC)
+ if (sflag && af != AF_UNSPEC)
goto protostat;
kread(0, 0, 0);
OpenPOWER on IntegriCloud