Commit 4230205e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't use sockaddr->sa_len, it was too advanced for POSIX people.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1392 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 6264c766
......@@ -88,12 +88,10 @@ VRT_acl_match(struct sess *sp, struct sockaddr *sa, const char *acln, struct vrt
struct addrinfo *a1;
struct sockaddr_in *sin1, *sin2;
if (sa->sa_family == AF_INET) {
assert(sa->sa_len >= sizeof *sin1);
if (sa->sa_family == AF_INET)
sin1 = (void*)sa;
} else {
else
sin1 = NULL;
}
for ( ; ap->name != NULL; ap++) {
if (ap->priv == NULL && ap->paren)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment