svn commit: r195825 - head/sys/fs/nfsclient

Rick Macklem rmacklem at FreeBSD.org
Wed Jul 22 18:10:45 UTC 2009


Author: rmacklem
Date: Wed Jul 22 18:10:44 2009
New Revision: 195825
URL: http://svn.freebsd.org/changeset/base/195825

Log:
  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)

Modified:
  head/sys/fs/nfsclient/nfs_clrpcops.c

Modified: head/sys/fs/nfsclient/nfs_clrpcops.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clrpcops.c	Wed Jul 22 15:41:37 2009	(r195824)
+++ head/sys/fs/nfsclient/nfs_clrpcops.c	Wed Jul 22 18:10:44 2009	(r195825)
@@ -753,7 +753,7 @@ nfsrpc_setclient(struct nfsmount *nmp, s
 	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;


More information about the svn-src-head mailing list