odp-util: Only add recirc_id mask to Netlink message if mask is provided
authorThomas Graf <tgraf@noironetworks.com>
Tue, 26 Aug 2014 16:34:52 +0000 (18:34 +0200)
committerBen Pfaff <blp@nicira.com>
Tue, 26 Aug 2014 18:24:27 +0000 (11:24 -0700)
commit7f99cf1199a34f3584e40ba4ce3cbb0f43732182
treed42915a40e1a3f39368dc2db72c818249fc29d21
parent5a5de8fdf496b1605bc53365e34e0a84ba7d7442
odp-util: Only add recirc_id mask to Netlink message if mask is provided

Current unconditional call may result in NULL being passed to
nl_msg_put_u32().

Cc: Andy Zhou <azhou@nicira.com>
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/odp-util.c