On Mon, Oct 12, 2015 at 10:10:27AM -0700, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff <b...@nicira.com> > Reported-by: Manpreet Singh <er.manpree...@gmail.com> > Reported-at: http://openvswitch.org/pipermail/discuss/2015-October/019048.html > --- > AUTHORS | 1 + > lib/ofp-util.c | 4 ++-- > 2 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/AUTHORS b/AUTHORS > index 99bcf60..8123f43 100644 > --- a/AUTHORS > +++ b/AUTHORS > @@ -310,6 +310,7 @@ Len Gao l...@vmware.com > Logan Rosen logatron...@gmail.com > Luca Falavigna dktrkr...@debian.org > Luiz Henrique Ozaki luiz.oz...@gmail.com > +Manpreet Singh er.manpree...@gmail.com > Marco d'Itri m...@linux.it > Martin Vizvary vizv...@ics.muni.cz > Marvin Pascual mar...@pascual.com.ph > diff --git a/lib/ofp-util.c b/lib/ofp-util.c > index b9dbcda..f0f6319 100644 > --- a/lib/ofp-util.c > +++ b/lib/ofp-util.c > @@ -8679,7 +8679,7 @@ ofputil_decode_group_mod(const struct ofp_header *oh, > case OFPGT11_FF: > break; > default: > - OVS_NOT_REACHED(); > + return OFPERR_OFPGMFC_BAD_TYPE;
This looks correct. > } > > switch (gm->command) { > @@ -8694,7 +8694,7 @@ ofputil_decode_group_mod(const struct ofp_header *oh, > } > break; > default: > - OVS_NOT_REACHED(); > + return OFPERR_OFPGMFC_BAD_COMMAND; This too. > } > > LIST_FOR_EACH (bucket, list_node, &gm->buckets) { But then it continues iterating over the buckets checking the gm->type: ... default: OVS_NOT_REACHED(); } Shouldn't that also returns OFPERR_OFPGMFC_BAD_TYPE? Thanks, fbl _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev