diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2025-03-05 09:29:22 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2025-03-13 10:18:44 +0000 |
commit | f1929835f76d587804c417f19188f41b77e8e7c6 (patch) | |
tree | fbd5965f4bfbac9c6a54378612b6b648f44ef28a | |
parent | 067cf605f884d888fd269ca269d9dda3b66a8787 (diff) |
ipfw: fix dump_soptcodes() handler
Use correct indent number to dump registered socket options.
It is not currently in use but can be used for debugging.
PR: 283970
(cherry picked from commit b405250c77e6841a8159a4081d4e0f61e49dfbf8)
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_sockopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_sockopt.c b/sys/netpfil/ipfw/ip_fw_sockopt.c index 92fcf729a3ae..975a5aabfa25 100644 --- a/sys/netpfil/ipfw/ip_fw_sockopt.c +++ b/sys/netpfil/ipfw/ip_fw_sockopt.c @@ -3122,7 +3122,7 @@ dump_soptcodes(struct ip_fw_chain *chain, ip_fw3_opheader *op3, } olh->size = size; - for (n = 1; n <= count; n++) { + for (n = 0; n < count; n++) { i = (ipfw_sopt_info *)ipfw_get_sopt_space(sd, sizeof(*i)); KASSERT(i != NULL, ("previously checked buffer is not enough")); sh = &ctl3_handlers[n]; |