mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-14 12:49:08 +00:00
[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: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b7595b4955
commit
b8282dcf04
@ -498,7 +498,7 @@ int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
|
||||
goto drop;
|
||||
|
||||
if (dccp_parse_options(sk, skb))
|
||||
goto drop;
|
||||
goto drop_and_free;
|
||||
|
||||
dccp_openreq_init(req, &dp, skb);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user