]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mountd: Ensure cache downcall can handle IPv6 addresses
authorChuck Lever <chuck.lever@oracle.com>
Thu, 16 Sep 2010 18:21:48 +0000 (14:21 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 16 Sep 2010 18:33:51 +0000 (14:33 -0400)
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/cache.c

index 0e8a2f41c924abef17163a2cdc584fc3d963997e..f70f4d6e81a7e1ee7b57061f34b7d1c6d68ba162 100644 (file)
@@ -943,7 +943,7 @@ static int cache_export_ent(char *domain, struct exportent *exp, char *path)
  */
 int cache_export(nfs_export *exp, char *path)
 {
-       char buf[INET_ADDRSTRLEN];
+       char buf[INET6_ADDRSTRLEN];
        int err;
        FILE *f;