snmp_pf: remove errno usage after pfctl_get_status_h change

pfctl_get_status_h() does not set errno, so don't log it.

PR:		291936
Reviewed by:	kp
This commit is contained in:
Simon Wollwage
2025-12-26 11:47:26 +01:00
committed by Kristof Provost
parent 2e7699355f
commit eaa424e3bd
+1 -2
View File
@@ -1288,8 +1288,7 @@ pfs_refresh(void)
pfs = pfctl_get_status_h(pfh);
if (pfs == NULL) {
syslog(LOG_ERR, "pfs_refresh(): ioctl(): %s",
strerror(errno));
syslog(LOG_ERR, "pfs_refresh(): pfctl_get_status failure");
return (-1);
}