Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107726
b: refs/heads/master
c: 1730554
h: refs/heads/master
v: v3
  • Loading branch information
Florian Westphal authored and David S. Miller committed Aug 4, 2008
1 parent 758e1a5 commit 9f7ab77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: adf044c8778de98dae29c5ce9973b7e43964674f
refs/heads/master: 1730554f253deb65fe5112c54b2f898d5318a328
22 changes: 11 additions & 11 deletions trunk/net/ipv6/syncookies.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,8 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb)
ireq6 = inet6_rsk(req);
treq = tcp_rsk(req);

if (security_inet_conn_request(sk, skb, req)) {
reqsk_free(req);
goto out;
}
if (security_inet_conn_request(sk, skb, req))
goto out_free;

req->mss = mss;
ireq->rmt_port = th->source;
Expand Down Expand Up @@ -255,14 +253,13 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb)
fl.fl_ip_dport = inet_rsk(req)->rmt_port;
fl.fl_ip_sport = inet_sk(sk)->sport;
security_req_classify_flow(req, &fl);
if (ip6_dst_lookup(sk, &dst, &fl)) {
reqsk_free(req);
goto out;
}
if (ip6_dst_lookup(sk, &dst, &fl))
goto out_free;

if (final_p)
ipv6_addr_copy(&fl.fl6_dst, final_p);
if ((xfrm_lookup(&dst, &fl, sk, 0)) < 0)
goto out;
goto out_free;
}

req->window_clamp = tp->window_clamp ? :dst_metric(dst, RTAX_WINDOW);
Expand All @@ -273,7 +270,10 @@ struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb)
ireq->rcv_wscale = rcv_wscale;

ret = get_cookie_sock(sk, skb, req, dst);

out: return ret;
out:
return ret;
out_free:
reqsk_free(req);
return NULL;
}

0 comments on commit 9f7ab77

Please sign in to comment.