odp-util: Initialize tun_key and tun_key_mask

tun_key_to_attr() accesses tp_src and tp_dst which are currently
uinitialized.

Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
miniflow: Remove unused value_inline branch from miniflow_move()

The branch is unused as size < sizeof dst->inline_values must
always be true for inlined values. Hitting the branch would lead
to corruption as inline_values is accessed out of bounds.

Remove branch and and add assertion.

Cc: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
json: Fix leaked nodes in json_hash_object()

nodes is allocated through shash_sort() but never freed.

Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
build: Use errtrace to simplify travis-ci failure detection

Causes the build script to fail if any command inside the
script returns nonzero.

Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
dpif-netdev: Fix leaked port and port->rxq in error path

Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
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>
ovsdb: Fix leaked row in ovsdb_execute_wait()

An error returned from ovsdb_row_from_json() currently results in
leaking of row.

Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
ovsdb: Catch negative timeout values

Although the check has been present already, a missing !error
branch in the next condition prevents from the error being
reported back.

Signed-off-by: Thomas Graf <tgraf@noironetworks.com>