Subject: Re: CVS commit: src/sys/kern
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Elad Efrat <elad@NetBSD.org>
List: tech-kern
Date: 10/02/2006 12:29:29
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?
-e.
--
Elad Efrat