]> git.puffer.fish Git - mirror/frr.git/commit
[bgpd] Coverity CID #64: Needless NULL check, CID #64: Deref of potentially NULL...
authorPaul Jakma <paul.jakma@sun.com>
Sun, 15 Oct 2006 23:50:16 +0000 (23:50 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Sun, 15 Oct 2006 23:50:16 +0000 (23:50 +0000)
commited3ebfa36b45fe487015e1918e848f0ff4500bff
tree06e26892b62cc4f109e0d63718f3d7fa1c3bf54a
parent53d9f67a18dc59fd688fce999cb35653010a54fb
[bgpd] Coverity CID #64: Needless NULL check, CID #64: Deref of potentially NULL pointer.

2006-10-15 Paul Jakma <paul.jakma@sun.com>

* bgp_packet.c: (bgp_update_packet) adv->rn can not be NULL,
  check is bogus - changed to assert(), CID#64.
  binfo is checked for NULL, but then dereferenced
  unconditionally, fix, CID #63.
  (bgp_withdraw_packet) Assert adv->rn is valid, as with
  bgp_update_packet().
bgpd/ChangeLog
bgpd/bgp_packet.c