Skip to contentSkip to conversation

leak in net/dccp/ipv4.c

PATCH Applied Eric Sesterhenn 3 participants 3 messages Apr 10, 2006 – Apr 11, 2006 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leak in net/dccp/ipv4.c

hi,

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

net/dccp/ipv4.c renamed from net/dccp/ipv4.c.orig +1 -1
@@ -498,7 +498,7 @@ int dccp_v4_conn_request(struct sock *sk
 		goto drop;
 
 	if (dccp_parse_options(sk, skb))
-		goto drop;
+		goto drop_and_free;
 
 	dccp_openreq_init(req, &dp, skb);