aboutsummaryrefslogtreecommitdiff
path: root/block/nbd.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2010-09-17 20:37:25 +0200
committerKevin Wolf <kwolf@redhat.com>2010-09-21 15:39:42 +0200
commitc2e2872bf49884d2b2382613891ce979e95c11ca (patch)
tree1b55530a55c645bc899c0b6374e713cbe3fd4bb3 /block/nbd.c
parent5fe16888d33af7aca0d613d888c161af68c755c3 (diff)
downloadqemu-c2e2872bf49884d2b2382613891ce979e95c11ca.zip
qemu-c2e2872bf49884d2b2382613891ce979e95c11ca.tar.gz
qemu-c2e2872bf49884d2b2382613891ce979e95c11ca.tar.bz2
nbd: correctly manage default port
block/nbd.c: use default port number when none is specified qemu-nbd.c: use IANA-assigned port number: 10809 Signed-off-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/nbd.c')
-rw-r--r--block/nbd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/nbd.c b/block/nbd.c
index 5e9d6cb..c8dc763 100644
--- a/block/nbd.c
+++ b/block/nbd.c
@@ -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);