[PATCH] knfsd: SUNRPC: Provide room in svc_rqst for larger addresses
[linux-2.6-block.git] / net / sunrpc / svcauth_unix.c
index 987244f95909e9d89477d49b080a9b01d4a7f649..4b775dbf580d819f852afa62be6e4901b93452b4 100644 (file)
@@ -421,6 +421,7 @@ svcauth_unix_info_release(void *info)
 static int
 svcauth_unix_set_client(struct svc_rqst *rqstp)
 {
+       struct sockaddr_in *sin = svc_addr_in(rqstp);
        struct ip_map *ipm;
 
        rqstp->rq_client = NULL;
@@ -430,7 +431,7 @@ svcauth_unix_set_client(struct svc_rqst *rqstp)
        ipm = ip_map_cached_get(rqstp);
        if (ipm == NULL)
                ipm = ip_map_lookup(rqstp->rq_server->sv_program->pg_class,
-                                   rqstp->rq_addr.sin_addr);
+                                   sin->sin_addr);
 
        if (ipm == NULL)
                return SVC_DENIED;