block/nbd: Reject port parameter without host
authorMax Reitz <mreitz@redhat.com>
Tue, 25 Oct 2016 13:11:30 +0000 (15:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Oct 2016 17:05:23 +0000 (19:05 +0200)
commit442045cbce010688eed2b8ede6141e982c6d6b23
treed0c5d881c37d70a5f163d5d70761380e92c740e5
parent82d73014a9111c53fefb7e7954c9e370d23f7569
block/nbd: Reject port parameter without host

Currently, a port that is passed along with a UNIX socket path is
silently ignored. That is not exactly ideal, it should be an error
instead.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nbd.c