Revision e23a22e6 qemu-sockets.c

b/qemu-sockets.c
130 130
    ai.ai_family = PF_UNSPEC;
131 131
    ai.ai_socktype = SOCK_STREAM;
132 132

  
133
    if (qemu_opt_get(opts, "port") == NULL) {
133
    if ((qemu_opt_get(opts, "host") == NULL) ||
134
        (qemu_opt_get(opts, "port") == NULL)) {
134 135
        fprintf(stderr, "%s: host and/or port not specified\n", __FUNCTION__);
135 136
        return -1;
136 137
    }

Also available in: Unified diff