In nl_msg_push_flag(), the 3rd NULL parameter causing 'memcpy()'
with NULL source pointer in nl_msg_push_unspec().

Signed-off-by: William Tu <u9012...@gmail.com>
---
 lib/netlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/netlink.c b/lib/netlink.c
index 5d8a147..fbdb78e 100644
--- a/lib/netlink.c
+++ b/lib/netlink.c
@@ -377,7 +377,7 @@ nl_msg_push_unspec(struct ofpbuf *msg, uint16_t type,
 void
 nl_msg_push_flag(struct ofpbuf *msg, uint16_t type)
 {
-    nl_msg_push_unspec(msg, type, NULL, 0);
+    nl_msg_push_unspec_uninit(msg, type, 0);
 }
 
 /* Prepends a Netlink attribute of the given 'type' and the given 8-bit 'value'
-- 
2.5.0

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to