Change the size of the padding to 0 in the function nl_msg_put_uninit.
Signed-off-by: Alin Gabriel Serdean <[email protected]>
---
lib/netlink.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/netlink.c b/lib/netlink.c
index c08a557..17a8885 100644
--- a/lib/netlink.c
+++ b/lib/netlink.c
@@ -174,7 +174,11 @@ nl_msg_put(struct ofpbuf *msg, const void *data, size_t
size)
void *
nl_msg_put_uninit(struct ofpbuf *msg, size_t size)
{
+#ifndef _WIN32
size_t pad = PAD_SIZE(size, NLMSG_ALIGNTO);
+#else
+ size_t pad = 0;
+#endif
char *p = ofpbuf_put_uninit(msg, size + pad);
if (pad) {
memset(p + size, 0, pad);
--
1.9.0.msysgit.0
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev