]> git.proxmox.com Git - mirror_qemu.git/commit
block/curl: Check protocol prefix
authorMax Reitz <mreitz@redhat.com>
Fri, 31 Mar 2017 12:04:31 +0000 (14:04 +0200)
committerJeff Cody <jcody@redhat.com>
Fri, 31 Mar 2017 19:53:22 +0000 (15:53 -0400)
commit34634ca28688652198f77d7001c0f1e204434663
tree83fae1f529bef142b654076f6862ef1419c31f53
parent6b9d62db89a31882d53d8fbfb67d4d82f22877b6
block/curl: Check protocol prefix

If the user has explicitly specified a block driver and thus a protocol,
we have to make sure the URL's protocol prefix matches. Otherwise the
latter will silently override the former which might catch some users by
surprise.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20170331120431.1767-3-mreitz@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/curl.c