Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1310b955 authored by Jesper Juhl's avatar Jesper Juhl Committed by Pablo Neira Ayuso
Browse files

netfilter: ctnetlink: fix leak in error path of ctnetlink_create_expect



This patch fixes a leak in one of the error paths of
ctnetlink_create_expect if no helper and no timeout is specified.

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 32263dd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2624,7 +2624,7 @@ ctnetlink_create_expect(struct net *net, u16 zone,
	if (!help) {
		if (!cda[CTA_EXPECT_TIMEOUT]) {
			err = -EINVAL;
			goto out;
			goto err_out;
		}
		exp->timeout.expires =
		  jiffies + ntohl(nla_get_be32(cda[CTA_EXPECT_TIMEOUT])) * HZ;