aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net.c b/net.c
index ef401992a9..4708080687 100644
--- a/net.c
+++ b/net.c
@@ -3302,7 +3302,9 @@ static void net_check_clients(void)
static int net_init_client(QemuOpts *opts, void *dummy)
{
- return net_client_init(NULL, opts, 0);
+ if (net_client_init(NULL, opts, 0) < 0)
+ return -1;
+ return 0;
}
static int net_init_netdev(QemuOpts *opts, void *dummy)