Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #1126 by properly setting the mask token to the IP number token.

Varnishtest doesn't see the difference between a VCC core dump and
a VCC error, so a test-case is non-trivial.

Fixes	#1126
  • Loading branch information...
commit b97fc0cd048eb92ca7ad4f25b91e34837c5e1508 1 parent b54bfa5
@bsdphk bsdphk authored Tollef Fog Heen committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/libvcl/vcc_acl.c
View
4 lib/libvcl/vcc_acl.c
@@ -265,8 +265,10 @@ vcc_acl_try_netnotation(struct vcc *tl, struct acl_e *ae)
return (0);
p += k + 1;
}
- if (ae->t_mask == NULL)
+ if (ae->t_mask == NULL) {
ae->mask = 8 + 8 * i;
+ ae->t_mask = ae->t_addr;
+ }
vcc_acl_add_entry(tl, ae, 4, b, AF_INET);
return (1);
}
Please sign in to comment.
Something went wrong with that request. Please try again.