summaryrefslogtreecommitdiff
path: root/lib/netlink-socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/netlink-socket.c')
-rw-r--r--lib/netlink-socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netlink-socket.c b/lib/netlink-socket.c
index 93757cfb7..2c3eadff0 100644
--- a/lib/netlink-socket.c
+++ b/lib/netlink-socket.c
@@ -338,7 +338,7 @@ nl_sock_recv__(struct nl_sock *sock, struct ofpbuf *buf, bool wait)
error = (retval < 0 ? errno
: retval == 0 ? ECONNRESET /* not possible? */
: nlmsghdr->nlmsg_len != UINT32_MAX ? 0
- : -retval);
+ : retval);
} while (error == EINTR);
if (error) {
if (error == ENOBUFS) {