summaryrefslogtreecommitdiff
path: root/lib/lib_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-07-27 10:02:34 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-07-27 10:02:34 -0400
commit239b37bb3c1d1d82423c5934c8615d4bfb392472 (patch)
treea29998ce0c511fafb9190fe19c4790c31e25c3c8 /lib/lib_errors.c
parent563f0c2b2de19737e62017d318a7f5cdbbf8c210 (diff)
bgpd: Notice when we unlock if we should NULL pointer
The bi->net pointer that is being unlocked had a commit that removed the `bi->net = NULL;` recently. This code was preventing a use after free crash being experienced in other code paths. While commit 37e679629f9 was fixing a different code path crash. Make the parent->net pointer aware it may be locked/freed from multiple places and to not NULL the pointer to it unless we have actually freed the data. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/lib_errors.c')
0 files changed, 0 insertions, 0 deletions