Revision: 14803
Author: adrian.chadd
Date: Tue Sep  7 22:02:44 2010
Log: Enforce numeric hosts for sqinet_aton() lookups. This function should only be used for numeric lookups.


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

Modified:
 /playpen/LUSCA_HEAD_ipv6/libsqinet/sqinet.c

=======================================
--- /playpen/LUSCA_HEAD_ipv6/libsqinet/sqinet.c Tue Jul 13 07:06:28 2010
+++ /playpen/LUSCA_HEAD_ipv6/libsqinet/sqinet.c Tue Sep  7 22:02:44 2010
@@ -656,6 +656,7 @@
                hints.ai_family = AF_INET6;
        if (flags & SQATON_PASSIVE)
                hints.ai_flags |= AI_PASSIVE;
+       hints.ai_flags |= AI_NUMERICHOST;

        err = getaddrinfo(hoststr, NULL, &hints, &r);
        if (err != 0) {

--
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