X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsumount.c;h=ba2790068dcc79de499939b08d1d86e9972b3639;hp=9b48cc9a63239d9c92eb89edf31cdfd56476ae72;hb=19ba81f64447dca205362a119f1e72701438aecc;hpb=3fc80f43ffb272036188d070a01090bbf243b7b5 diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index 9b48cc9..ba27900 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -174,7 +174,10 @@ static int nfs_umount_do_umnt(struct mount_options *options, socklen_t salen = sizeof(address); struct pmap nfs_pmap, mnt_pmap; - nfs_options2pmap(options, &nfs_pmap, &mnt_pmap); + if (!nfs_options2pmap(options, &nfs_pmap, &mnt_pmap)) { + nfs_error(_("%s: bad mount options"), progname); + return EX_FAIL; + } *hostname = nfs_umount_hostname(options, *hostname); if (!*hostname) {