]> git.proxmox.com Git - mirror_qemu.git/commit
block/nfs: fix url parameter checking
authorPeter Lieven <pl@kamp.de>
Tue, 24 Jun 2014 22:06:00 +0000 (00:06 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 26 Jun 2014 11:51:01 +0000 (13:51 +0200)
commit7c24384b3b984f0256ba10eb26d877ec28985019
treec1c0a62dbac23a048ba7bf3c8d34c332b2762f1a
parent3b9f27d2b34cb8c5cc6cec993712c7e1943e9de9
block/nfs: fix url parameter checking

this patch fixes the incorrect usage of strncmp and
adds simple error checking by means of parse_uint_full
instead of atoi for the supplied URL parameters.

Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nfs.c