Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174448062
D60248.id188393.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
494 B
Referenced Files
None
Subscribers
None
D60248.id188393.diff
View Options
diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c
--- a/lib/libpfctl/libpfctl.c
+++ b/lib/libpfctl/libpfctl.c
@@ -2040,7 +2040,13 @@
struct pfctl_handle h = {};
int error;
- snl_init(&h.ss, NETLINK_GENERIC);
+ if (!snl_init(&h.ss, NETLINK_GENERIC))
+ return (ENOTSUP);
+ h.family_id = snl_get_genl_family(&h.ss, PFNL_FAMILY_NAME);
+ if (h.family_id == 0) {
+ snl_free(&h.ss);
+ return (ENOTSUP);
+ }
error = pfctl_get_states_h(&h, filter, f, arg);
snl_free(&h.ss);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 4, 7:31 AM (20 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40131337
Default Alt Text
D60248.id188393.diff (494 B)
Attached To
Mode
D60248: libpfctl: remove the state getters that do not take a handle
Attached
Detach File
Event Timeline
Log In to Comment