[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:
Eric Sesterhenn authored and David S. Miller committed 2006-04-11 17:21:06 -07:00
1 parent b7595b4955
commit b8282dcf04
1 file changed
+1 -1
+1 -1
View File
@@ -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);