]> git.proxmox.com Git - qemu.git/blobdiff - qemu-sockets.c
correctly check ppr priority during interrupt injection]
[qemu.git] / qemu-sockets.c
index a7399aa945a6a4f69e7c069a0d76a769ce09a43e..c526324998b07047daec34b209707e2f817d3935 100644 (file)
@@ -130,7 +130,8 @@ int inet_listen_opts(QemuOpts *opts, int port_offset)
     ai.ai_family = PF_UNSPEC;
     ai.ai_socktype = SOCK_STREAM;
 
-    if (qemu_opt_get(opts, "port") == NULL) {
+    if ((qemu_opt_get(opts, "host") == NULL) ||
+        (qemu_opt_get(opts, "port") == NULL)) {
         fprintf(stderr, "%s: host and/or port not specified\n", __FUNCTION__);
         return -1;
     }