Fix memory leak when setting next hop for community inforecs
authorJennifer Richards <jennifer@painless-security.com>
Wed, 2 May 2018 14:31:03 +0000 (10:31 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Wed, 2 May 2018 14:31:03 +0000 (10:31 -0400)
commitfd58b52dff0f0cbbd52542f1f89c2e3d50f7c58a
treec7b743f3eab8b727b2f8b951e89995480ea6d42d
parent8a8bd5293cd798f75060f82b5079db10968a7a27
Fix memory leak when setting next hop for community inforecs

  * Return TRP_UNSUPPORTED when setting next hop on an inforec that
    does not accept it (i.e., community inforecs)
  * Free the next hop TR_NAME if it was not stored
trp/trp_upd.c