diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2019-01-10 02:01:20 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2019-01-10 02:01:20 +0000 |
commit | 3b1522c229fb6ca97a6a141e848bf1cfd76ade44 (patch) | |
tree | ee707f00e481a420c259abc2b3e93fdb74f18824 | |
parent | 1cdf23bc0362af1c7a9c56d91e34b7ded2d1a13b (diff) | |
download | src-3b1522c229fb6ca97a6a141e848bf1cfd76ade44.tar.gz src-3b1522c229fb6ca97a6a141e848bf1cfd76ade44.zip |
Fix the build with INVARIANTS.
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=342909
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_pfil.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_pfil.c b/sys/netpfil/ipfw/ip_fw_pfil.c index 0490032425db..feb4a20f9b69 100644 --- a/sys/netpfil/ipfw/ip_fw_pfil.c +++ b/sys/netpfil/ipfw/ip_fw_pfil.c @@ -257,7 +257,7 @@ again: ret = EACCES; if (ip_dn_io_ptr == NULL) break; /* i.e. drop */ - MPASS(args->flags & IPFW_ARGS_REF); + MPASS(args.flags & IPFW_ARGS_REF); if (mtod(*m0, struct ip *)->ip_v == 4) ret = ip_dn_io_ptr(m0, dir, &args); else if (mtod(*m0, struct ip *)->ip_v == 6) @@ -281,7 +281,7 @@ again: ret = EACCES; break; /* i.e. drop */ } - MPASS(args->flags & IPFW_ARGS_REF); + MPASS(args.flags & IPFW_ARGS_REF); ret = ipfw_divert(m0, dir, &args.rule, (ipfw == IP_FW_TEE) ? 1 : 0); /* continue processing for the original packet (tee). */ @@ -295,7 +295,7 @@ again: ret = EACCES; break; /* i.e. drop */ } - MPASS(args->flags & IPFW_ARGS_REF); + MPASS(args.flags & IPFW_ARGS_REF); ret = ng_ipfw_input_p(m0, dir, &args, (ipfw == IP_FW_NGTEE) ? 1 : 0); if (ipfw == IP_FW_NGTEE) /* ignore errors for NGTEE */ @@ -406,7 +406,7 @@ again: *m0 = NULL; dir = (dir == PFIL_IN) ? DIR_IN : DIR_OUT; - MPASS(args->flags & IPFW_ARGS_REF); + MPASS(args.flags & IPFW_ARGS_REF); ip_dn_io_ptr(&m, dir | PROTO_LAYER2, &args); return 0; @@ -416,7 +416,7 @@ again: ret = EACCES; break; /* i.e. drop */ } - MPASS(args->flags & IPFW_ARGS_REF); + MPASS(args.flags & IPFW_ARGS_REF); ret = ng_ipfw_input_p(m0, (dir == PFIL_IN) ? DIR_IN : DIR_OUT, &args, (i == IP_FW_NGTEE) ? 1 : 0); if (i == IP_FW_NGTEE) /* ignore errors for NGTEE */ |