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)
commitf2b5db596a779c2eba8dde72f903178552ba3d8d
treef100934518cdf1ef4dd6469b0f415356f0550c19
parent1ffb80ac1b79380cc9cf5b2b0eb6b9de6801a25c
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