]> git.proxmox.com Git - mirror_qemu.git/commitdiff
net: Make qmp_query_rx_filter() with name argument more obvious
authorMarkus Armbruster <armbru@redhat.com>
Thu, 24 Apr 2014 13:44:17 +0000 (15:44 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 25 Apr 2014 13:58:07 +0000 (15:58 +0200)
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>
net/net.c

index bc9ed6def0fd4363d152179e9eb29836309c6e57..ccb354aee8edac7cd3794f6cd8365a2f692c357a 100644 (file)
--- 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) {