mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Check the correct set of interface flags and fix a memory leak.
Reviewed by: harti
This commit is contained in:
parent
f6dbcc4910
commit
d47c9466dd
1 changed files with 2 additions and 1 deletions
|
|
@ -609,7 +609,8 @@ ng_eiface_rcvdata(hook_p hook, item_p item)
|
|||
printf("ng_eiface: mbuf is null.\n");
|
||||
return (EINVAL);
|
||||
}
|
||||
if (!(ifp->if_flags & IFF_UP)) {
|
||||
if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) {
|
||||
NG_FREE_M(m);
|
||||
return (ENETDOWN);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue