summaryrefslogtreecommitdiff
path: root/lib/libcrypto/pkcs12/p12_kiss.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2025-01-09 16:47:25 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2025-01-09 16:47:25 +0000
commit2befe21b3a9527cf7e7259e1735254d9c8fb5a7a (patch)
tree4913d4ba81da8b99b3d3f2af506e948ed00f38ac /lib/libcrypto/pkcs12/p12_kiss.c
parent48991c3b2faa43a8532047d9d365cb4216bf2c26 (diff)
Run TCP sysctl ident and drop with shared net lock.HEADmastercvs/HEAD
Convert exclusive net lock for TCPCTL_IDENT and TCPCTL_DROP to shared net lock and push it down into tcp_ident(). Grab the socket lock there with in_pcbsolock_ref(). Move socket release from in_pcbsolock() to in_pcbsounlock_rele() and add _ref and _rele suffix to the inpcb socket lock functions. They both lock and refcount now. in_pcbsounlock_rele() ignores NULL sockets to make the unlock path in error case simpler. Socket lock also protects tcp_drop() and tcp_close() now, so the socket pointer from incpb may be NULL during unlock. In tcp_ident() improve consistency check of address family. OK mvs@
Diffstat (limited to 'lib/libcrypto/pkcs12/p12_kiss.c')
0 files changed, 0 insertions, 0 deletions