mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
igmp: Avoid leaking mbuf when source validation fails
PR: 252504 Submitted by: Panagiotis Tsolakos <panagiotis.tsolakos@gmail.com> MFC after: 3 days
This commit is contained in:
parent
431980466f
commit
501159696c
1 changed files with 1 additions and 0 deletions
|
|
@ -1589,6 +1589,7 @@ igmp_input(struct mbuf **mp, int *offp, int proto)
|
|||
if (nsrc * sizeof(in_addr_t) >
|
||||
UINT16_MAX - iphlen - IGMP_V3_QUERY_MINLEN) {
|
||||
IGMPSTAT_INC(igps_rcv_tooshort);
|
||||
m_freem(m);
|
||||
return (IPPROTO_DONE);
|
||||
}
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue