[ovs-git] [openvswitch/ovs] f70ad9: netdev: Fix crash when ifa_netmask is null.

GitHub noreply at github.com
Wed Jul 12 15:50:43 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: f70ad934920d25c5d392e18eca7d3fa1bc36c205
      https://github.com/openvswitch/ovs/commit/f70ad934920d25c5d392e18eca7d3fa1bc36c205
  Author: Haifeng Lin <haifeng.lin at huawei.com>
  Date:   2017-07-12 (Wed, 12 Jul 2017)

  Changed paths:
    M lib/netdev.c

  Log Message:
  -----------
  netdev: Fix crash when ifa_netmask is null.

glibc sometimes doesn't initialize the ifa_netmask and ifa_addr fields, if
the ioctl to fetch them fails.  Check ifa_name also just for paranoia.

Signed-off-by: Haifeng Lin <haifeng.lin at huawei.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list