diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-12-12 14:46:27 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-12-12 14:46:27 +0000 |
commit | 52eff8a5ba462b49737290c486c504a96c3d3e8a (patch) | |
tree | 4277605293fb43c04a61240f4dcb6682cdec3425 /sbin/pfctl/parse.y | |
parent | 456b002b425cc4a47357c7027c2431ef90fe8b82 (diff) |
we don't need to keep a private copy of the queue name in expand_rule,
r->qname is never modified
discussed with dhartmei@
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r-- | sbin/pfctl/parse.y | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index e3750b9f2c8..99ce7ef3069 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.249 2002/12/11 13:23:38 mcbride Exp $ */ +/* $OpenBSD: parse.y,v 1.250 2002/12/12 14:46:26 henning Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -2869,11 +2869,9 @@ expand_rule(struct pf_rule *r, char label[PF_RULE_LABEL_SIZE]; struct pf_pooladdr *pa; struct node_host *h; - char qname[PF_QNAME_SIZE]; u_int8_t flags, flagset; strlcpy(label, r->label, sizeof(label)); - strlcpy(qname, r->qname, sizeof(qname)); flags = r->flags; flagset = r->flagset; @@ -2915,8 +2913,7 @@ expand_rule(struct pf_rule *r, strlcpy(r->label, label, PF_RULE_LABEL_SIZE); expand_label(r->label, r->ifname, r->af, src_host, src_port, dst_host, dst_port, proto->proto); - strlcpy(r->qname, qname, PF_QNAME_SIZE); - r->qid = qname_to_qid(qname, r->ifname); + r->qid = qname_to_qid(r->qname, r->ifname); r->ifnot = interface->not; r->proto = proto->proto; r->src.addr = src_host->addr; |