ofp-parse: Properly report error for invalid group ID.
authorBen Pfaff <blp@nicira.com>
Thu, 16 Apr 2015 20:56:46 +0000 (13:56 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 22 Apr 2015 03:04:30 +0000 (20:04 -0700)
commitaa6fb0772f481b0f1a96c35c521a2eb0c4d5a179
treec462013db75f6d8bc46aea06ccfc87dfbbc6b87b
parent9dd30b0571020a012650e3907328fc8dc41b381a
ofp-parse: Properly report error for invalid group 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: Andy Zhou <azhou@nicira.com>
lib/ofp-parse.c
tests/ofproto.at