]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/nbd.c
nbd: correctly manage default port
[mirror_qemu.git] / block / nbd.c
index 5e9d6cb8e655aa961787e32a8280f94a51550b58..c8dc763c6bb4dd5d7f21258de1fac7edeeb9b54a 100644 (file)
@@ -95,8 +95,6 @@ static int nbd_open(BlockDriverState *bs, const char* filename, int flags)
             if (r == p) {
                 goto out;
             }
-        } else if (name == NULL) {
-            goto out;
         }
 
         sock = tcp_socket_outgoing(hostname, port);