Subject: Re: CVS commit: src/sys/kern
To: None <elad@NetBSD.org>
From: YAMAMOTO Takashi <firstname.lastname@example.org>
Date: 10/03/2006 07:57:03
> YAMAMOTO Takashi wrote:
> > i don't think sodisconnect is an appropriate place to free a credential.
> > you still leak a credential if the socket is not connected at all.
> > besides, what will happen if the socket is reconnected?
> > sofree seems more appropriate, but i vaguely remember that it can be called
> > from interrupt context. (please confirm.)
> Briefly looking at the code suggests that sofree() would be "safe"; but
> how do I confirm?
read the code carefully? :)
seriously, i don't know a better way than it.
grep showed me the following.
tcp_input -> tcp_close -> in_pcbdetach -> sofree