[NETFILTER]: ctnetlink: fix leak in ctnetlink_create_conntrack error path
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
334c85569b
commit
c54ea3b95a
2 changed files with 2 additions and 2 deletions
|
@ -959,7 +959,7 @@ ctnetlink_create_conntrack(struct nfattr *cda[],
|
|||
if (cda[CTA_PROTOINFO-1]) {
|
||||
err = ctnetlink_change_protoinfo(ct, cda);
|
||||
if (err < 0)
|
||||
return err;
|
||||
goto err;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_IP_NF_CONNTRACK_MARK)
|
||||
|
|
|
@ -981,7 +981,7 @@ ctnetlink_create_conntrack(struct nfattr *cda[],
|
|||
if (cda[CTA_PROTOINFO-1]) {
|
||||
err = ctnetlink_change_protoinfo(ct, cda);
|
||||
if (err < 0)
|
||||
return err;
|
||||
goto err;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_NF_CONNTRACK_MARK)
|
||||
|
|
Loading…
Reference in a new issue