Current unconditional call may result in NULL being passed to nl_msg_put_u32().
Cc: Andy Zhou <az...@nicira.com> Signed-off-by: Thomas Graf <tg...@noironetworks.com> --- lib/odp-util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index 19d0627..8a96068 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -1755,7 +1755,9 @@ parse_odp_key_mask_attr(const char *s, const struct simap *port_names, if (ovs_scan(s, "recirc_id(%"SCNi32")%n", &recirc_id, &n)) { nl_msg_put_u32(key, OVS_KEY_ATTR_RECIRC_ID, recirc_id); - nl_msg_put_u32(mask, OVS_KEY_ATTR_RECIRC_ID, UINT32_MAX); + if (mask) { + nl_msg_put_u32(mask, OVS_KEY_ATTR_RECIRC_ID, UINT32_MAX); + } return n; } } -- 1.9.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev