mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
D'oh- isp_handle_index' logic was reversed (not used in FreeBSD).
MFC after: 1 week
This commit is contained in:
parent
2a4510e122
commit
739fd8c533
1 changed files with 2 additions and 2 deletions
|
|
@ -294,10 +294,10 @@ uint32_t
|
|||
isp_handle_index(ispsoftc_t *isp, uint32_t handle)
|
||||
{
|
||||
if (!ISP_VALID_HANDLE(isp, handle)) {
|
||||
return (handle & ISP_HANDLE_CMD_MASK);
|
||||
} else {
|
||||
isp_prt(isp, ISP_LOGERR, "%s: bad handle 0x%x", __func__, handle);
|
||||
return (ISP_BAD_HANDLE_INDEX);
|
||||
} else {
|
||||
return (handle & ISP_HANDLE_CMD_MASK);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue