]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix ipip_output() to always set *mp to NULL on failure, even if 'm'
authorSam Leffler <sam@FreeBSD.org>
Tue, 20 Jan 2004 22:45:10 +0000 (22:45 +0000)
committerSam Leffler <sam@FreeBSD.org>
Tue, 20 Jan 2004 22:45:10 +0000 (22:45 +0000)
commitb5b47bc6fa9ba9794afd130c91a556a3569166c7
treeac4a2f5f2c5d428bf034a6c176f3ea1f11bff957
parentc58cde95d1c86956fc3cd0f8299f463c3a36f527
Fix ipip_output() to always set *mp to NULL on failure, even if 'm'
is NULL, otherwise ipsec4_process_packet() may try to m_freem() a
bad pointer.

In ipsec4_process_packet(), don't try to m_freem() 'm' twice; ipip_output()
already did it.

Obtained from: netbsd
sys/netipsec/ipsec_output.c
sys/netipsec/xform_ipip.c