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:
committed by
Kristof Provost
parent
2e7699355f
commit
eaa424e3bd
@@ -1288,8 +1288,7 @@ pfs_refresh(void)
|
|||||||
pfs = pfctl_get_status_h(pfh);
|
pfs = pfctl_get_status_h(pfh);
|
||||||
|
|
||||||
if (pfs == NULL) {
|
if (pfs == NULL) {
|
||||||
syslog(LOG_ERR, "pfs_refresh(): ioctl(): %s",
|
syslog(LOG_ERR, "pfs_refresh(): pfctl_get_status failure");
|
||||||
strerror(errno));
|
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user