block/nfs: Check for NULL server part
commit5f4d5e1aa652712ea39b6fd97114378c5c15ccda
authorMax Reitz <mreitz@redhat.com>
Mon, 5 May 2014 18:27:49 +0000 (5 20:27 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 9 May 2014 11:32:16 +0000 (9 13:32 +0200)
tree05bcf694e0871dc97148192315a9029911b528af
parent1a443c1b8b4314d365e82bddeb1de5b4b1c15fb3
block/nfs: Check for NULL server part

After the URL has been parsed make sure the server part is valid in
order to avoid a segmentation fault when calling nfs_mount().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/nfs.c