Revision: 14851
Author:   adrian.chadd
Date:     Fri Jul  1 07:50:26 2011
Log:
Check the address family of the correct address before trying to use it.

http://code.google.com/p/lusca-cache/source/detail?r=14851

Modified:
 /playpen/LUSCA_HEAD_ipv6/src/acl.c

=======================================
--- /playpen/LUSCA_HEAD_ipv6/src/acl.c  Wed Jan 12 00:33:33 2011
+++ /playpen/LUSCA_HEAD_ipv6/src/acl.c  Fri Jul  1 07:50:26 2011
@@ -2069,7 +2069,7 @@
        }
        /* NOTREACHED */
     case ACL_SRC_IP6:
-       if (sqinet_get_family(&checklist->my_address) == AF_INET6)
+       if (sqinet_get_family(&checklist->src_address) == AF_INET6)
            return aclMatchIp(&ae->data, &checklist->src_address);
        else
            return 0;           /* Can't do an IPv4 lookup against IPv6 
"my_addr" */

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to