summaryrefslogtreecommitdiffstats
path: root/lib/xfrm
diff options
context:
space:
mode:
authorNicolas PLANEL <nicolas.planel@enovance.com>2014-08-26 14:23:37 (GMT)
committerThomas Haller <thaller@redhat.com>2014-08-26 14:52:17 (GMT)
commit54ae1d95a43ac73aaae007990c102358cec43d30 (patch)
treed900a0344fad2424a46a38b9b77ee3c846dd81bd /lib/xfrm
parent8cd946a683b81460bbb5e3f62acd5a65225581d7 (diff)
downloadlibnl-54ae1d95a43ac73aaae007990c102358cec43d30.zip
libnl-54ae1d95a43ac73aaae007990c102358cec43d30.tar.gz
libnl-54ae1d95a43ac73aaae007990c102358cec43d30.tar.bz2
xfrm: fix calling free() with a bad pointer
sp->sec_ctx->ctx is a zero-length member, so it's already allocated https://github.com/thom311/libnl/pull/61 Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/xfrm')
-rw-r--r--lib/xfrm/sp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/xfrm/sp.c b/lib/xfrm/sp.c
index 76cdc61..74e9484 100644
--- a/lib/xfrm/sp.c
+++ b/lib/xfrm/sp.c
@@ -94,7 +94,6 @@ static void xfrm_sp_free_data(struct nl_object *c)
if(sp->sec_ctx)
{
- free (sp->sec_ctx->ctx);
free (sp->sec_ctx);
}