Messages in this thread Patch in this message | | | Subject | [Patch] leak in net/dccp/ipv4.c | From | Eric Sesterhenn <> | Date | Tue, 11 Apr 2006 00:07:26 +0200 |
| |
hi,
we dont free req if we cant parse the options. This fixes coverity bug id #1046
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
--- linux-2.6.17-rc1/net/dccp/ipv4.c.orig 2006-04-11 00:05:39.000000000 +0200 +++ linux-2.6.17-rc1/net/dccp/ipv4.c 2006-04-11 00:06:08.000000000 +0200 @@ -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);
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |