]> granicus.if.org Git - libnl/commit
Fix creation and destruction of sockets
authorThomas Graf <tgr@deb.localdomain>
Mon, 17 Dec 2007 15:26:49 +0000 (16:26 +0100)
committerThomas Graf <tgr@deb.localdomain>
Mon, 17 Dec 2007 15:26:49 +0000 (16:26 +0100)
commit91c330aae51cd6cd44ad730e10dc82724998c810
treebe5b7257e043ef8aac4282d437404a68afae3c87
parent5780c640fcf9dee398a72285c7cc34ab8f5c46a3
Fix creation and destruction of sockets

Fixes an off-by-one when releasing local ports. Fixes nl_connect()
to properly close the socket upon failure. Return EBADFD if
operations are performed on unconnected sockets where appropriate.
Makes nl_handle_alloc() return an error if all local ports are
used up.
lib/nl.c
lib/socket.c
tests/test-socket-creation.c