projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netlink-socket: return correct error code when connect fails
[cascardo/ovs.git]
/
lib
/
netlink-socket.c
diff --git
a/lib/netlink-socket.c
b/lib/netlink-socket.c
index
5ef4b15
..
0cedb41
100644
(file)
--- a/
lib/netlink-socket.c
+++ b/
lib/netlink-socket.c
@@
-195,6
+195,7
@@
nl_sock_create(int protocol, struct nl_sock **sockp)
goto error;
}
sock->rcvbuf = retval;
+ retval = 0;
/* Connect to kernel (pid 0) as remote address. */
memset(&remote, 0, sizeof remote);