diff options
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index 6317d3c8dc0d..fdde2ae07e24 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c | |||
@@ -283,7 +283,7 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb, | |||
283 | cookie_check_timestamp(&tcp_opt); | 283 | cookie_check_timestamp(&tcp_opt); |
284 | 284 | ||
285 | ret = NULL; | 285 | ret = NULL; |
286 | req = reqsk_alloc(&tcp_request_sock_ops); /* for safety */ | 286 | req = inet_reqsk_alloc(&tcp_request_sock_ops); /* for safety */ |
287 | if (!req) | 287 | if (!req) |
288 | goto out; | 288 | goto out; |
289 | 289 | ||
@@ -299,7 +299,6 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb, | |||
299 | ireq->rmt_port = th->source; | 299 | ireq->rmt_port = th->source; |
300 | ireq->loc_addr = ip_hdr(skb)->daddr; | 300 | ireq->loc_addr = ip_hdr(skb)->daddr; |
301 | ireq->rmt_addr = ip_hdr(skb)->saddr; | 301 | ireq->rmt_addr = ip_hdr(skb)->saddr; |
302 | ireq->opt = NULL; | ||
303 | ireq->snd_wscale = tcp_opt.snd_wscale; | 302 | ireq->snd_wscale = tcp_opt.snd_wscale; |
304 | ireq->rcv_wscale = tcp_opt.rcv_wscale; | 303 | ireq->rcv_wscale = tcp_opt.rcv_wscale; |
305 | ireq->sack_ok = tcp_opt.sack_ok; | 304 | ireq->sack_ok = tcp_opt.sack_ok; |