Daniel P. Berrangé <[email protected]> writes: > On Mon, Oct 26, 2026 at 02:54:32PM +0100, Markus Armbruster wrote:
[...] >> Hmm, should we close(sock) on failure here? > > Opps, yes, you are right - we should in fact fall through to > the cleanup: label, as the intention is 'sock' is closed in > all, as the caller expects socket_accept() to close the sock > in all cases. That's a second bug in my original patch. > > This is pretty unpleasant semantics though - the caller owns > the socket and should own closing it. Oh yes. Even more so since the function is called *_accept(). [...]
