diff options
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index 47519205a014..0ad6ddf638a7 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c | |||
@@ -355,7 +355,8 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb, | |||
355 | .fl_ip_sport = th->dest, | 355 | .fl_ip_sport = th->dest, |
356 | .fl_ip_dport = th->source }; | 356 | .fl_ip_dport = th->source }; |
357 | security_req_classify_flow(req, &fl); | 357 | security_req_classify_flow(req, &fl); |
358 | if (ip_route_output_key(sock_net(sk), &rt, &fl)) { | 358 | rt = ip_route_output_key(sock_net(sk), &fl); |
359 | if (IS_ERR(rt)) { | ||
359 | reqsk_free(req); | 360 | reqsk_free(req); |
360 | goto out; | 361 | goto out; |
361 | } | 362 | } |