]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Make ospf_passive_interface_update calls friendly to static analysis
authorPaul Jakma <paul@opensourcerouting.org>
Fri, 19 Sep 2014 15:41:10 +0000 (16:41 +0100)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:30 +0000 (15:33 +0000)
commitf842f166403b993a6763611808ae05da6cb9ca93
tree7528b131a9fd6fc0a855f4daeb3a1f7eaf510292
parent0908a2fdd38417908959f548548ca13a3b5c435a
ospfd: Make ospf_passive_interface_update calls friendly to static analysis

* ospf_vty.c: ({no_}ospf_passive_interface_addr_cmd) To a static analyser,
  the call to ospf_passive_interface_update can look like uninitialised memory
  in addr might be read from. It won't be, as ospf_passive_interface_update
  only reads addr if params != IF_DEF_PARAMS, but not clear. Split up the
  helper into the two cases to make it clear.

(cherry picked from commit e1bcd4741c24ff990a9413ead9a9e37b80153046)
ospfd/ospf_vty.c