Commit b97fc0cd authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

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
parent b54bfa5c
......@@ -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);
}
......
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