diff options
| author | 2012-03-06 11:15:12 +0000 | |
|---|---|---|
| committer | 2012-03-06 11:15:12 +0000 | |
| commit | 1bcd3ed14c8fa6e184f201a82ee72073d3bd6a68 (patch) | |
| tree | 06440c698a1157e6392a677ee99753de78c8efbc /libexec/tftp-proxy/filter.c | |
| parent | Define NO_UNSAFE_BUILTINS, overlooked when local changes got merged to gcc4. (diff) | |
| download | wireguard-openbsd-1bcd3ed14c8fa6e184f201a82ee72073d3bd6a68.tar.xz wireguard-openbsd-1bcd3ed14c8fa6e184f201a82ee72073d3bd6a68.zip | |
Fill in default values for rtableid/onrdomain/prio when creating PF rules,
prompted by a mail from Gabriel Linder. OK henning@
Diffstat (limited to 'libexec/tftp-proxy/filter.c')
| -rw-r--r-- | libexec/tftp-proxy/filter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libexec/tftp-proxy/filter.c b/libexec/tftp-proxy/filter.c index 7cb0fca2bd5..40b30b2b495 100644 --- a/libexec/tftp-proxy/filter.c +++ b/libexec/tftp-proxy/filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filter.c,v 1.10 2011/06/22 08:40:14 sthen Exp $ */ +/* $OpenBSD: filter.c,v 1.11 2012/03/06 11:15:12 sthen Exp $ */ /* * Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl> @@ -214,6 +214,9 @@ prepare_rule(u_int32_t id, struct sockaddr *src, } pfr.rule.dst.port_op = PF_OP_EQ; pfr.rule.dst.port[0] = htons(d_port); + pfr.rule.rtableid = -1; + pfr.rule.onrdomain = -1; + pfr.rule.prio[0] = pfr.rule.prio[1] = PF_PRIO_NOTSET; pfr.rule.action = PF_PASS; pfr.rule.quick = 1; pfr.rule.log = rule_log; |
