Subject: CVS commit: src/sys/netipsec
To: None <source-changes@NetBSD.org>
From: Steve Woodford <scw@netbsd.org>
List: source-changes
Date: 01/16/2004 11:06:27
Module Name: src
Committed By: scw
Date: Fri Jan 16 11:06:27 UTC 2004
Modified Files:
src/sys/netipsec: ipsec_output.c xform_ipip.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 src/sys/netipsec/ipsec_output.c \
src/sys/netipsec/xform_ipip.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.