diff options
author | 2007-06-23 15:51:21 +0000 | |
---|---|---|
committer | 2007-06-23 15:51:21 +0000 | |
commit | 86ff660a98c2d157ceeb6380a963a921bcb69417 (patch) | |
tree | 652e3174c672834126605f261343d62ed65f21d4 | |
parent | Accept 0x00 as notify type since some notebooks (MSI-S260) (diff) | |
download | wireguard-openbsd-86ff660a98c2d157ceeb6380a963a921bcb69417.tar.xz wireguard-openbsd-86ff660a98c2d157ceeb6380a963a921bcb69417.zip |
default rule.flags and rule.flagset to 0 instead of null
from max laier
-rw-r--r-- | libexec/tftp-proxy/filter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/tftp-proxy/filter.c b/libexec/tftp-proxy/filter.c index cd6ce3cd1e7..61b3a1756bb 100644 --- a/libexec/tftp-proxy/filter.c +++ b/libexec/tftp-proxy/filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filter.c,v 1.1 2005/12/28 19:07:07 jcs Exp $ */ +/* $OpenBSD: filter.c,v 1.2 2007/06/23 15:51:21 jcs Exp $ */ /* * Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl> @@ -297,9 +297,9 @@ prepare_rule(u_int32_t id, int rs_num, struct sockaddr *src, pfr.rule.quick = 1; pfr.rule.log = rule_log; pfr.rule.keep_state = 1; - pfr.rule.flags = (proto == IPPROTO_TCP ? TH_SYN : NULL); + pfr.rule.flags = (proto == IPPROTO_TCP ? TH_SYN : 0); pfr.rule.flagset = (proto == IPPROTO_TCP ? - (TH_SYN|TH_ACK|TH_FIN|TH_RST) : NULL); + (TH_SYN|TH_ACK|TH_FIN|TH_RST) : 0); pfr.rule.max_states = 1; if (qname != NULL) strlcpy(pfr.rule.qname, qname, sizeof pfr.rule.qname); |