]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Modify route unlock code to return appropriate pointer
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 27 Jul 2018 13:54:39 +0000 (09:54 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 27 Jul 2018 13:54:39 +0000 (09:54 -0400)
commit563f0c2b2de19737e62017d318a7f5cdbbf8c210
treeae51b502f8810802d26446152be9e64fc4ed929e
parent298de6ef18404624b0771411b3f1e1aa9cd951cf
lib: Modify route unlock code to return appropriate pointer

Modify the unlock code for a route_node to return NULL on
pointer freed or to return the node itself again.

We'll need to go through the code and fix this pattern,
but this is a problem for another day.  Get this fix in
place and we can make it a low hanging problem to fix.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/table.h