]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/dccp/ipv6.c
dccp: Per-socket initialisation of feature negotiation
[net-next-2.6.git] / net / dccp / ipv6.c
index d4ce1224e008f13ee4da674cec0c6047a3a9f25f..4e172ccfd76c33cf25508dabbf46dfa50d664188 100644 (file)
@@ -426,7 +426,8 @@ static int dccp_v6_conn_request(struct sock *sk, struct sk_buff *skb)
        if (req == NULL)
                goto drop;
 
-       dccp_reqsk_init(req, skb);
+       if (dccp_reqsk_init(req, dccp_sk(sk), skb))
+               goto drop_and_free;
 
        dreq = dccp_rsk(req);
        if (dccp_parse_options(sk, dreq, skb))