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 0e8a2f4..f70f4d6 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;