]> git.proxmox.com Git - mirror_qemu.git/blobdiff - net/slirp.c
tcg/s390x: Avoid the constant pool in tcg_out_movi
[mirror_qemu.git] / net / slirp.c
index 14a8d592774c59503b8e44e3c59a65167fc59a34..2ee3f1a0d7ca484d4dff36c73e74af31154c5f05 100644 (file)
@@ -1153,8 +1153,8 @@ int net_init_slirp(const Netdev *netdev, const char *name,
         ipv6 = 0;
     }
 
-    vnet = user->has_net ? g_strdup(user->net) :
-           user->has_ip  ? g_strdup_printf("%s/24", user->ip) :
+    vnet = user->net ? g_strdup(user->net) :
+           user->ip  ? g_strdup_printf("%s/24", user->ip) :
            NULL;
 
     dnssearch = slirp_dnssearch(user->dnssearch);