net/colo.c: Fix the pointer issue reported by Coverity.
commit3772cf0d1b37d32e61dc314e9cc18ff745327ddd
authorZhang Chen <chen.zhang@intel.com>
Mon, 22 Aug 2022 08:14:36 +0000 (22 16:14 +0800)
committerJason Wang <jasowang@redhat.com>
Fri, 2 Sep 2022 02:22:39 +0000 (2 10:22 +0800)
treeeca63bc9c34b05e6466854bf76f033961ff3a6ce
parent0e3fdcffead7c651ce06ab50cffb89e806f04e2b
net/colo.c: Fix the pointer issue reported by Coverity.

When enabled the virtio-net-pci, guest network packet will
load the vnet_hdr. In COLO status, the primary VM's network
packet maybe redirect to another VM, it needs filter-redirect
enable the vnet_hdr flag at the same time, COLO-proxy will
correctly parse the original network packet. If have any
misconfiguration here, the vnet_hdr_len is wrong for parse
the packet, the data+offset will point to wrong place.

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo.c
net/colo.h
net/trace-events