mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 17:17:19 -04:00
ktls: don't try to unlock pcb if tcp_drop() already did
Reviewed by: rrs, gallatin
This commit is contained in:
parent
8c23afdb57
commit
743516d51f
1 changed files with 5 additions and 3 deletions
|
|
@ -1715,10 +1715,12 @@ ktls_reset_send_tag(void *context, int pending)
|
|||
CURVNET_SET(inp->inp_vnet);
|
||||
tp = tcp_drop(tp, ECONNABORTED);
|
||||
CURVNET_RESTORE();
|
||||
if (tp != NULL)
|
||||
if (tp != NULL) {
|
||||
counter_u64_add(ktls_ifnet_reset_dropped, 1);
|
||||
}
|
||||
INP_WUNLOCK(inp);
|
||||
INP_WUNLOCK(inp);
|
||||
}
|
||||
} else
|
||||
INP_WUNLOCK(inp);
|
||||
NET_EPOCH_EXIT(et);
|
||||
|
||||
counter_u64_add(ktls_ifnet_reset_failed, 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue