git: 9ce320820e6d - main - pfctl: build fix

Kristof Provost kp at FreeBSD.org
Tue Aug 24 13:21:40 UTC 2021


The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=9ce320820e6d760df11a88de11fbae024c18d23c

commit 9ce320820e6d760df11a88de11fbae024c18d23c
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-24 11:21:05 +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")
---
 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