ospf6d: Fix crash when '[no] ipv6 ospf6 advertise prefix-list' is in startup-config
commit2470e99e828c098d2d03f8d693853cbe69e3fb6f
authorDavid Ward <david.ward@ll.mit.edu>
Tue, 5 Jan 2010 02:45:39 +0000 (5 02:45 +0000)
committerGreg Troxel <gdt@ir.bbn.com>
Wed, 28 Apr 2010 23:30:17 +0000 (28 19:30 -0400)
tree19e1526814455301a244af928fe2c3d553ec3100
parent85c4968bb1432ddc7c059893fdee2c976bbee937
ospf6d: Fix crash when '[no] ipv6 ospf6 advertise prefix-list' is in startup-config

* ospf6_interface.c: When '[no] ipv6 ospf6 advertise prefix-list'
  appears in the startup configuration for ospf6d, a crash occurs,
  because ospf6d attempts to schedule LSAs when the 'oi->area'
  structure has not yet been initialized.

  Now, when the command above is issued (either in the startup
  configuration or at runtime), ospf6d will only schedule LSAs if
  the 'oi->area' structure has been initalized. A similar test is
  already used when handling the commands 'ipv6 ospf6 priority'
  and 'ipv6 ospf6 cost'.
ospf6d/ospf6_interface.c