Commit 926479e6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Relax an assert to only check what we really care about, and not the

principle of the situation.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3020 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent cb1e1507
......@@ -203,8 +203,8 @@ vcc_acl_try_getaddrinfo(struct tokenlist *tl, struct acl_e *ae)
for(res = res0; res != NULL; res = res->ai_next) {
switch(res->ai_family) {
case PF_INET:
assert(PF_INET < 256);
sin4 = (void*)res->ai_addr;
assert(sizeof(sin4->sin_family) == 1);
assert(sizeof(sin4->sin_addr) == 4);
u = (void*)&sin4->sin_addr;
if (ae->t_mask == NULL)
......@@ -213,8 +213,8 @@ vcc_acl_try_getaddrinfo(struct tokenlist *tl, struct acl_e *ae)
vcc_acl_emit_entry(tl, ae, 4, u, res->ai_family);
break;
case PF_INET6:
assert(PF_INET6 < 256);
sin6 = (void*)res->ai_addr;
assert(sizeof(sin6->sin6_family) == 1);
assert(sizeof(sin6->sin6_addr) == 16);
u = (void*)&sin6->sin6_addr;
if (ae->t_mask == NULL)
......
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