lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 8 Nov 2013 10:55:08 +0800 From: Wang Weidong <wangweidong1@...wei.com> To: <vyasevich@...il.com>, <nhorman@...driver.com> CC: <dingtianhong@...wei.com>, <davem@...emloft.net>, <linux-sctp@...r.kernel.org>, <netdev@...r.kernel.org> Subject: [PATCH net-next 3/5] sctp: if we done update ssnmap, free the new ssnmap I found that free the old parameters after update the peer parameters. So we should free the new ssnmap which not updated. Signed-off-by: Wang Weidong <wangweidong1@...wei.com> --- net/sctp/associola.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/sctp/associola.c b/net/sctp/associola.c index 2d53d4c..bca1ad1 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -1223,6 +1223,10 @@ void sctp_assoc_update(struct sctp_association *asoc, } } + /* if we don't update the ssnmap, we should free it. */ + if (new->ssnmap) + sctp_ssnmap_free(new->ssnmap); + /* SCTP-AUTH: Save the peer parameters from the new assocaitions * and also move the association shared keys over */ -- 1.7.12 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists