Skip to content

Commit

Permalink
[DCCP]: Fix leak in net/dccp/ipv4.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sesterhenn authored and David S. Miller committed Apr 12, 2006
1 parent b7595b4 commit b8282dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dccp/ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b8282dc

Please sign in to comment.