mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-07 13:14:51 +00:00
Unbreak computation of 'smask' that I broke when removing caddr_t.
Submitted by: bde
This commit is contained in:
parent
c4819db060
commit
c5e3ef7e1f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99075
@ -129,7 +129,7 @@ vfs_hang_addrlist(mp, nep, argp)
|
||||
if (saddr->sa_len > argp->ex_addrlen)
|
||||
saddr->sa_len = argp->ex_addrlen;
|
||||
if (argp->ex_masklen) {
|
||||
smask = (struct sockaddr *) (saddr + argp->ex_addrlen);
|
||||
smask = (struct sockaddr *)((caddr_t)saddr + argp->ex_addrlen);
|
||||
error = copyin(argp->ex_mask, smask, argp->ex_masklen);
|
||||
if (error)
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user