Found by LLVM scan-build.
Reported-by: Kevin Lo <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
---
lib/ofp-parse.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c
index 8fce546..46212f6 100644
--- a/lib/ofp-parse.c
+++ b/lib/ofp-parse.c
@@ -1409,6 +1409,9 @@ parse_ofp_group_mod_str__(struct ofputil_group_mod *gm,
uint16_t command,
goto out;
}
error = str_to_u64(value, &gm->props.selection_method_param);
+ if (error) {
+ goto out;
+ }
*usable_protocols &= OFPUTIL_P_OF15_UP;
} else if (!strcmp(name, "fields")) {
if (!(fields & F_GROUP_TYPE)) {
--
2.1.3
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev