mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Assert so->so_pcb is NULL in sodealloc() -- the protocol state should not
be present at this point. We will eventually remove this assert because the socket layer should never look at so_pcb, but for now it's a useful debugging tool. MFC after: 3 months
This commit is contained in:
parent
220c1357ed
commit
7f689de232
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157359
@ -307,6 +307,8 @@ sodealloc(struct socket *so)
|
||||
{
|
||||
|
||||
KASSERT(so->so_count == 0, ("sodealloc(): so_count %d", so->so_count));
|
||||
KASSERT(so->so_pcb == NULL, ("sodealloc(): so_pcb != NULL"));
|
||||
|
||||
mtx_lock(&so_global_mtx);
|
||||
so->so_gencnt = ++so_gencnt;
|
||||
mtx_unlock(&so_global_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user