The m_free call in the ip6_fw_ctl_ptr == NULL case apparently

tries to free uninitialized mbuf.
This was my mistake during recent KAME merge.  This part is for
*BSD other than FreeBSD.

Submitted by:	Alexander N. Kabaev <ak03@gte.com>
This commit is contained in:
ume 2001-07-07 19:58:45 +00:00
parent 4d2ef515ad
commit bf2c541b2e

View File

@ -1669,8 +1669,6 @@ do { \
if (ip6_fw_ctl_ptr == NULL)
{
if (m)
(void)m_free(m);
return EINVAL;
}
error = (*ip6_fw_ctl_ptr)(optname, mp);