mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
ofp-util: Fix null pointer dereference in ofputil_pull_buckets().
Found by clang-analyzer. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
This commit is contained in:
@@ -6986,6 +6986,7 @@ ofputil_pull_buckets(struct ofpbuf *msg, size_t buckets_length,
|
||||
if (!ob) {
|
||||
VLOG_WARN_RL(&bad_ofmsg_rl, "buckets end with %"PRIuSIZE" leftover bytes",
|
||||
buckets_length);
|
||||
return OFPERR_OFPGMFC_BAD_BUCKET;
|
||||
}
|
||||
|
||||
ob_len = ntohs(ob->len);
|
||||
|
Reference in New Issue
Block a user