Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89985
b: refs/heads/master
c: 7cd04fa
h: refs/heads/master
i:
  89983: d18b1fa
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Mar 3, 2008
1 parent 8421ea2 commit b6f99b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 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: f0fd56ed40ec5fb889bfc7efccd1c5759e6e9937
refs/heads/master: 7cd04fa7e35100877592f6be4efdccac0fed62b2
16 changes: 6 additions & 10 deletions trunk/net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,8 +1355,7 @@ int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
(s32)(peer->tcp_ts - req->ts_recent) >
TCP_PAWS_WINDOW) {
NET_INC_STATS_BH(LINUX_MIB_PAWSPASSIVEREJECTED);
dst_release(dst);
goto drop_and_free;
goto drop_and_release;
}
}
/* Kill the following clause, if you dislike this way. */
Expand All @@ -1376,24 +1375,21 @@ int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb)
"request from %u.%u.%u.%u/%u\n",
NIPQUAD(saddr),
ntohs(tcp_hdr(skb)->source));
dst_release(dst);
goto drop_and_free;
goto drop_and_release;
}

isn = tcp_v4_init_sequence(skb);
}
tcp_rsk(req)->snt_isn = isn;

if (__tcp_v4_send_synack(sk, req, dst))
if (__tcp_v4_send_synack(sk, req, dst) || want_cookie)
goto drop_and_free;

if (want_cookie) {
reqsk_free(req);
} else {
inet_csk_reqsk_queue_hash_add(sk, req, TCP_TIMEOUT_INIT);
}
inet_csk_reqsk_queue_hash_add(sk, req, TCP_TIMEOUT_INIT);
return 0;

drop_and_release:
dst_release(dst);
drop_and_free:
reqsk_free(req);
drop:
Expand Down

0 comments on commit b6f99b6

Please sign in to comment.