Marcus Meissner
d187bddd91
- nfs-utils-uninit-mem.patch: fix use of uninitialized memory (bsc#956743) OBS-URL: https://build.opensuse.org/request/show/346397 OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=152
17 lines
595 B
Diff
17 lines
595 B
Diff
Index: nfs-utils-1.3.3/utils/mount/network.c
|
|
===================================================================
|
|
--- nfs-utils-1.3.3.orig/utils/mount/network.c
|
|
+++ nfs-utils-1.3.3/utils/mount/network.c
|
|
@@ -1626,7 +1626,10 @@ int nfs_options2pmap(struct mount_option
|
|
return 0;
|
|
if (!nfs_nfs_version(options, &version))
|
|
return 0;
|
|
- nfs_pmap->pm_vers = version.major;
|
|
+ if (version.v_mode == V_DEFAULT)
|
|
+ nfs_pmap->pm_vers = 0;
|
|
+ else
|
|
+ nfs_pmap->pm_vers = version.major;
|
|
if (!nfs_nfs_protocol(options, &nfs_pmap->pm_prot))
|
|
return 0;
|
|
if (!nfs_nfs_port(options, &nfs_pmap->pm_port))
|