diff options
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_hhook.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/kern_hhook.c b/sys/kern/kern_hhook.c index f2d8592..443a787 100644 --- a/sys/kern/kern_hhook.c +++ b/sys/kern/kern_hhook.c @@ -380,11 +380,12 @@ hhook_head_is_virtualised(struct hhook_head *hhh) { uint32_t ret; - if (hhh == NULL) - return (0); + ret = 0; - if (hhh->hhh_flags & HHH_ISINVNET) - ret = HHOOK_HEADISINVNET; + if (hhh != NULL) { + if (hhh->hhh_flags & HHH_ISINVNET) + ret = HHOOK_HEADISINVNET; + } return (ret); } |