summaryrefslogtreecommitdiffstats
path: root/net/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index bc9ed6def0..ccb354aee8 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1066,6 +1066,10 @@ RxFilterInfoList *qmp_query_rx_filter(bool has_name, const char *name,
" rx-filter querying", name);
break;
}
+
+ if (has_name) {
+ break;
+ }
}
if (filter_list == NULL && !error_is_set(errp) && has_name) {