]> git.proxmox.com Git - ovs.git/commit
ofp-parse: Properly report error for invalid bucket ID.
authorBen Pfaff <blp@nicira.com>
Thu, 16 Apr 2015 20:40:04 +0000 (13:40 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 17 Apr 2015 16:19:23 +0000 (09:19 -0700)
commit908995c56feeac6dc8dda3865a1c2eb3e7b718fb
tree4da3db53967f30d265caec8e88a417b0a5f4b08c
parent8790a8b4eff04ab10fab3581ff97059899c72d6a
ofp-parse: Properly report error for invalid bucket ID.

The inner 'error' shadowed an outer one, so that the error, when set, was
never returned to the caller.

Found by LLVM scan-build.

Reported-by: Kevin Lo <kevlo@FreeBSD.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/ofp-parse.c
tests/ofproto.at