X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fstropts.c;h=30ac5ae6259034889e6af31695dbd196706295ca;hp=ec95b78619a2c7ab342bfcb20d0863252d4bd01f;hb=19ba81f64447dca205362a119f1e72701438aecc;hpb=3fc80f43ffb272036188d070a01090bbf243b7b5 diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index ec95b78..30ac5ae 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -450,7 +450,10 @@ static struct mount_options *nfs_rewrite_mount_options(char *str) goto err; } - nfs_options2pmap(options, &nfs_pmap, &mnt_pmap); + if (!nfs_options2pmap(options, &nfs_pmap, &mnt_pmap)) { + errno = EINVAL; + goto err; + } /* The kernel NFS client doesn't support changing the RPC program * number for these services, so reset these fields before probing