aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net.c b/net.c
index ef40199..4708080 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)