]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
misc/ss: don't imply -a when -A was specified
authorPhil Sutter <phil@nwl.cc>
Fri, 7 Aug 2015 13:31:27 +0000 (15:31 +0200)
committerStephen Hemminger <shemming@brocade.com>
Mon, 10 Aug 2015 18:23:39 +0000 (11:23 -0700)
Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/ss.c

index f4c828c680673206d7dc5c0fdcae5443b6b9101c..f59213b4ef595778b17e2651f53503221ec8e03e 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -3664,6 +3664,8 @@ int main(int argc, char *argv[])
                        char *p, *p1;
                        if (!saw_query) {
                                current_filter.dbs = 0;
+                               state_filter = state_filter ?
+                                              state_filter : SS_CONN;
                                saw_query = 1;
                                do_default = 0;
                        }