X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qemu-sockets.c;h=993ce121580969c6ec9e18c5ee7b99f1c1bf3e03;hb=e1f0c1d05d3f96c7471cca1a6991b63574e00b52;hp=a88b2a77fc535632c8db5d6a04bba1ba2bb0864e;hpb=74bcc51b993c7a5835ad6a8e35f8b79b7513f072;p=qemu.git diff --git a/qemu-sockets.c b/qemu-sockets.c index a88b2a77f..993ce1215 100644 --- a/qemu-sockets.c +++ b/qemu-sockets.c @@ -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; }