mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Remove double lock acquisition in syncookie_lookup() which came from last
minute conversions to macros. Pointy hat to: andre
This commit is contained in:
parent
a0a148de0f
commit
bdfbf1e203
1 changed files with 0 additions and 1 deletions
|
|
@ -1347,7 +1347,6 @@ syncookie_lookup(struct in_conninfo *inc, struct tcphdr *th, struct socket *so)
|
|||
|
||||
data = (th->th_ack - 1) ^ (th->th_seq - 1); /* remove ISS */
|
||||
idx = data & SYNCOOKIE_WNDMASK;
|
||||
rw_rlock(&(tcp_secret[idx].ts_rwmtx));
|
||||
SYNCOOKIE_RLOCK(tcp_secret[idx]);
|
||||
if (tcp_secret[idx].ts_expire < ticks ||
|
||||
sototcpcb(so)->ts_recent + SYNCOOKIE_TIMEOUT < ticks) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue