netlink-socket: Fix nl_sock_recv__() on Windows.
authorNithin Raju <nithin@vmware.com>
Sat, 18 Oct 2014 18:39:38 +0000 (11:39 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 21 Oct 2014 19:35:11 +0000 (12:35 -0700)
commit15fd90524b40dc7147fc4d8abd96630687ca3640
tree24711780adde12c7b903a15e255c6a6dddb6f70d
parentbefa5b43fa1005c8895f09f14c49e8ad34e32af6
netlink-socket: Fix nl_sock_recv__() on Windows.

In nl_sock_recv__() on Windows, we realloc a new ofpbuf to copy received
data if the caller specified buffer is small. While we do so, we need
reset some of the other stack variables to point to the new ofpbuf.

Other fixes are around using 'error' rather than 'errno'.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Ankur Sharma <ankursharma@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netlink-socket.c