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

Commit b8282dcf authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by David S. Miller
Browse files

[DCCP]: Fix leak in net/dccp/ipv4.c



we dont free req if we cant parse the options.
This fixes coverity bug id #1046

Signed-off-by: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b7595b49
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -498,7 +498,7 @@ int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
		goto drop;
		goto drop;


	if (dccp_parse_options(sk, skb))
	if (dccp_parse_options(sk, skb))
		goto drop;
		goto drop_and_free;


	dccp_openreq_init(req, &dp, skb);
	dccp_openreq_init(req, &dp, skb);