]> git.proxmox.com Git - mirror_ovs.git/commit
physical: Tolerate missing distributed-port key for chassisredirect ports.
authorBen Pfaff <blp@ovn.org>
Sat, 27 May 2017 06:03:20 +0000 (23:03 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 31 May 2017 18:44:57 +0000 (11:44 -0700)
commit1ca6d1ddce0070938af67a892fc32bbc94e4171d
tree17f54717f5d0ec7cf6426b9cea444e2c3cae695a
parent2b03ef9540efe96623ccf4119b78d4e21fe0cfc2
physical: Tolerate missing distributed-port key for chassisredirect ports.

Until now, the code here assumed that a "distributed-port" key existed,
and dereferenced a null pointer if it did not.  This commit avoids that
problem.

Found by Coverity.

Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14763078&defectInstanceId=4305288&mergedDefectId=179857
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Aaron Conole <aconole@redhat.com>
ovn/controller/physical.c