git: d4c7ab9b1d00 - stable/13 - pfctl: build fix
Kristof Provost
kp at FreeBSD.org
Tue Aug 31 11:51:47 UTC 2021
The branch stable/13 has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=d4c7ab9b1d00075cad1e7edc39ae0ad941ef1e88
commit d4c7ab9b1d00075cad1e7edc39ae0ad941ef1e88
Author: Kristof Provost <kp at FreeBSD.org>
AuthorDate: 2021-08-24 11:21:05 +0000
Commit: Kristof Provost <kp at FreeBSD.org>
CommitDate: 2021-08-31 07:47:47 +0000
pfctl: build fix
Fix the build issue introduced in e59eff9ad328 (pfctl: fix killing states by ID)
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 9ce320820e6d760df11a88de11fbae024c18d23c)
---
sbin/pfctl/pfctl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index ad2cfd4e63bc..016075058b21 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -907,7 +907,8 @@ pfctl_id_kill_states(int dev, const char *iface, int opts)
kill.kill_match = true;
if ((sscanf(state_kill[1], "%jx/%x",
- &kill.cmp.id, &kill.cmp.creatorid)) == 2)
+ &kill.cmp.id, &kill.cmp.creatorid)) == 2) {
+ }
else if ((sscanf(state_kill[1], "%jx", &kill.cmp.id)) == 1) {
kill.cmp.creatorid = 0;
} else {
More information about the dev-commits-src-all
mailing list