From bdfbf1e203b4bb9f17d70a4e84ac64ffa7ad6024 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Sun, 18 Jun 2006 11:48:03 +0000 Subject: [PATCH] Remove double lock acquisition in syncookie_lookup() which came from last minute conversions to macros. Pointy hat to: andre --- sys/netinet/tcp_syncache.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 87d865040b1..e849c7f1009 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -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) {