diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2009-07-22 18:10:44 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2009-07-22 18:10:44 +0000 |
commit | fc8aed6a34d0df39ce749d45690be62dd8ce33c7 (patch) | |
tree | e6cd44cca500af514e58b7209d0fbf86bef0f831 /sys/fs | |
parent | 0157e2f2cfc09080663511252b25c1803a58271a (diff) | |
download | FreeBSD-src-fc8aed6a34d0df39ce749d45690be62dd8ce33c7.zip FreeBSD-src-fc8aed6a34d0df39ce749d45690be62dd8ce33c7.tar.gz |
When vfs.newnfs.callback_addr is set to an IPv4 address, the
experimental NFSv4 client might try and use it as an IPv6 address,
breaking callbacks. The fix simply initializes the isinet6 variable
for this case.
Approved by: re (kensmith), kib (mentor)
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/nfsclient/nfs_clrpcops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c index 627f521..37131cf 100644 --- a/sys/fs/nfsclient/nfs_clrpcops.c +++ b/sys/fs/nfsclient/nfs_clrpcops.c @@ -753,7 +753,7 @@ nfsrpc_setclient(struct nfsmount *nmp, struct nfsclclient *clp, nfsattrbit_t attrbits; u_int8_t *cp = NULL, *cp2, addr[INET6_ADDRSTRLEN + 9]; u_short port; - int error, isinet6, callblen; + int error, isinet6 = 0, callblen; nfsquad_t confirm; u_int32_t lease; static u_int32_t rev = 0; |