mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-08 09:30:41 +00:00
Try again not to use a userspace pointer in the kernel when trying to record
the hostname which we need for NLM requests. The previous patch was incomplete. PR: 125849 Pointy hat: dfr
This commit is contained in:
parent
db428b786c
commit
d3508f91ee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180780
|
@ -708,7 +708,7 @@ nfs_decode_args(struct mount *mp, struct nfsmount *nmp, struct nfs_args *argp,
|
|||
}
|
||||
|
||||
if (hostname) {
|
||||
strlcpy(nmp->nm_hostname, argp->hostname,
|
||||
strlcpy(nmp->nm_hostname, hostname,
|
||||
sizeof(nmp->nm_hostname));
|
||||
p = strchr(nmp->nm_hostname, ':');
|
||||
if (p)
|
||||
|
|
Loading…
Reference in a new issue