netlink-socket: return correct error code when connect fails
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Mon, 15 Feb 2016 17:13:30 +0000 (15:13 -0200)
committerSimon Horman <simon.horman@netronome.com>
Tue, 16 Feb 2016 02:26:39 +0000 (11:26 +0900)
commit2e46795083d3a19785eb086fb12c1b04d2d9b4e3
tree5677ddd910b560eadd6d89e438b64ff51db9a071
parentd5579e480863ed07402d400877cf37e701419b9e
netlink-socket: return correct error code when connect fails

When connect and other calls fail after get_socket_rcvbuf, the return code would
be the rcvbuf size, not errno from the last call.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/netlink-socket.c