[ovs-git] [openvswitch/ovs] f9d0ae: patch: Check the right variable for null.

GitHub noreply at github.com
Fri Jun 2 04:15:31 UTC 2017


  Branch: refs/heads/branch-2.7
  Home:   https://github.com/openvswitch/ovs
  Commit: f9d0ae6050c90b4ee0e89833b227bfd59b017d06
      https://github.com/openvswitch/ovs/commit/f9d0ae6050c90b4ee0e89833b227bfd59b017d06
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-06-01 (Thu, 01 Jun 2017)

  Changed paths:
    M ovn/controller/patch.c

  Log Message:
  -----------
  patch: Check the right variable for null.

This function tried to check 'iface_peer' for null, but it actually
checked its always-nonnull 'peer' argument instead.  This fixes the
problem.

Found by Coverity.

Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14763064&defectInstanceId=4305294&mergedDefectId=179852
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>




More information about the git mailing list