From 7185a7199b3e6540e72c718db0ad1a91676e37d0 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 7 Dec 2014 19:59:23 +0000 Subject: [PATCH] sctp: Fix double-free introduced by bad backport in 2.6.32.62 One deletion was omitted from the backport of upstream commit c485658bae87 ("net: sctp: fix skb leakage in COOKIE ECHO path of chunk->auth_chunk"). Signed-off-by: Ben Hutchings Signed-off-by: Willy Tarreau --- net/sctp/sm_statefuns.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index d40ff4aabbf4..1d40672750ce 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c @@ -750,7 +750,6 @@ sctp_disposition_t sctp_sf_do_5_1D_ce(const struct sctp_endpoint *ep, /* Make sure that we and the peer are AUTH capable */ if (!sctp_auth_enable || !new_asoc->peer.auth_capable) { - kfree_skb(chunk->auth_chunk); sctp_association_free(new_asoc); return sctp_sf_pdiscard(ep, asoc, type, arg, commands); } -- 2.11.4.GIT