]> git.proxmox.com Git - qemu.git/commit
Make net_client_init() consume slirp_configs even on error
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Oct 2009 11:16:56 +0000 (12:16 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Oct 2009 19:36:10 +0000 (14:36 -0500)
commit3a179c661434364607cf45882ab8b12cd6d32b27
treef100934518cdf1ef4dd6469b0f415356f0550c19
parent02374aa02a48e2d00c57b3d9b7b30821dcb2c139
Make net_client_init() consume slirp_configs even on error

net_slirp_init() walks slirp_configs, and stops when it encounters one
that doesn't work.  Instead of consuming slirp_configs members there,
consume them in the sole caller.  This makes sure all are consumed.
Before, the tail starting with the non-working one was left in place,
where it made the next net_slirp_init() fail again.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c