]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: set NHG/backup NHG pointers on success zapi read
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:39:22 +0000 (12:39 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:41:00 +0000 (12:41 -0400)
commit66c28560bac4035a92ea992f531b1d8e5250fab7
tree2042ea20641dd7ef83d9e33fa57f11e2042407de
parent612fcc5e8f33249929c3e9130885b9f2f6420532
zebra: set NHG/backup NHG pointers on success zapi read

Only set the NHG/backup NHG pointers of the caller if the read
of the nexthops was successfull. Otherwise, we might free when not
neccessary or double free.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zapi_msg.c