aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-04-24 15:44:17 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2014-04-25 15:58:07 +0200
commit638fb14169ad96cf9bc0dd5f61460daaecee5bb1 (patch)
tree2793f534da573dbd084d1b949a958e5abbf1b031 /net
parentf663faac3e2e9d9134415f75d429ae30432e6038 (diff)
downloadqemu-638fb14169ad96cf9bc0dd5f61460daaecee5bb1.zip
qemu-638fb14169ad96cf9bc0dd5f61460daaecee5bb1.tar.gz
qemu-638fb14169ad96cf9bc0dd5f61460daaecee5bb1.tar.bz2
net: Make qmp_query_rx_filter() with name argument more obvious
With a client name, the QMP command is specified to return a list of one element. This isn't locally obvious in the code. Make it so. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index bc9ed6d..ccb354a 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) {