]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Fix Dereference of Null Pointer during config
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 17 Mar 2016 21:26:46 +0000 (17:26 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 17 Mar 2016 21:26:46 +0000 (17:26 -0400)
commitd8f70b86d7fd55c0beb3e93abec9a33fd5a96ee3
tree2b8c27ad8607232273a9714fa33b55491a773a82
parent73d2dad0bd736b6bfd668a1de2a8f26baf2c5cdc
ospfd: Fix Dereference of Null Pointer during config

This construct:

struct ospf *ospf = vty->index;
if (!ospf)
  return CMD_SUCCESS;

Is present throughout the entire ospfd code base.  The command:
distance ospf external 255

Is not protected by this construct. I added this construct
to the command and in addition did a quick search to find
any others not protected and to protect them.

Ticket: CM-9725
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
ospfd/ospf_vty.c