diff options
-rw-r--r-- | lib/ofp-util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 156d8d25c..e4f186de2 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -4061,7 +4061,9 @@ ofputil_decode_packet_in_private(const struct ofp_header *oh, bool loose, uint64_t type; error = ofpprop_pull(&continuation, &payload, &type); - ovs_assert(!error); + if (error) { + break; + } switch (type) { case NXCPT_BRIDGE: @@ -4124,7 +4126,7 @@ ofputil_decode_packet_in_private(const struct ofp_header *oh, bool loose, ofputil_packet_in_private_destroy(pin); } - return 0; + return error; } /* Frees data in 'pin' that is dynamically allocated by |