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:22:13 +0000 (11:22 -0700)
commit7866907377d938867303a686533b9505be127274
tree5526bef8824581203823a9a1c68942fcedfa4c3a
parentde0ae686654559644f91d5100d1026dd2c51ca67
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