svn commit: r203848 - head/sys/fs/nfsserver
Rick Macklem
rmacklem at FreeBSD.org
Sat Feb 13 23:56:20 UTC 2010
Author: rmacklem
Date: Sat Feb 13 23:56:19 2010
New Revision: 203848
URL: http://svn.freebsd.org/changeset/base/203848
Log:
This fixes the experimental NFS server so that it won't crash in the
caching code for IPv6 by fixing a typo that used the incorrect variable.
It also fixes the indentation of the statement above it.
Reported by: simon AT comsys.ntu-kpi.kiev.ua
MFC after: 5 days
Modified:
head/sys/fs/nfsserver/nfs_nfsdcache.c
Modified: head/sys/fs/nfsserver/nfs_nfsdcache.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdcache.c Sat Feb 13 21:38:15 2010 (r203847)
+++ head/sys/fs/nfsserver/nfs_nfsdcache.c Sat Feb 13 23:56:19 2010 (r203848)
@@ -386,9 +386,9 @@ loop:
newrp->rc_inet = saddr->sin_addr.s_addr;
else if (saddr->sin_family == AF_INET6) {
saddr6 = (struct sockaddr_in6 *)saddr;
- NFSBCOPY((caddr_t)&saddr6->sin6_addr,(caddr_t)&newrp->rc_inet6,
- sizeof (struct in6_addr));
- rp->rc_flag |= RC_INETIPV6;
+ NFSBCOPY((caddr_t)&saddr6->sin6_addr, (caddr_t)&newrp->rc_inet6,
+ sizeof (struct in6_addr));
+ newrp->rc_flag |= RC_INETIPV6;
}
LIST_INSERT_HEAD(hp, newrp, rc_hash);
TAILQ_INSERT_TAIL(&nfsrvudplru, newrp, rc_lru);
More information about the svn-src-all
mailing list