]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
rpc: fix logic bug
authorEric Blake <eblake@redhat.com>
Mon, 4 Jul 2011 01:45:21 +0000 (09:45 +0800)
committerDaniel Veillard <veillard@redhat.com>
Mon, 4 Jul 2011 01:45:21 +0000 (09:45 +0800)
commit2aa83b43d3ddb75a4e9eb9672d3bc608c2022c7c
tree477faeba96e2aea7ac8fb544f13ef6206ff6ddf6
parent95eaf7ba7f9e46c21e8e054d7ee3bb2dfe4fa26c
rpc: fix logic bug

Spotted by Coverity.  If we don't update tmp each time through
the loop, then if the filter being removed was not the head of
the list, we accidentally lose all filters prior to the one we
wanted to remove.

* src/rpc/virnetserverclient.c (virNetServerClientRemoveFilter):
    Don't lose unrelated filters.
src/rpc/virnetserverclient.c