diff options
| author | Emanuele Di Pascale <emanuele@voltanet.io> | 2019-06-18 11:14:28 +0200 |
|---|---|---|
| committer | Emanuele Di Pascale <emanuele@voltanet.io> | 2019-06-24 11:35:44 +0200 |
| commit | ea63ff6bbd15e1f105fedee071ba3917daa41c7a (patch) | |
| tree | 2ece8417c6421c60b67d74b8e78b40db1be93bf7 /lib/lib_errors.c | |
| parent | 0c3bbed4e670a24134bd0bcb18b56634c542fcf5 (diff) | |
bgpd: fix LU label callback crash
under some conditions, the callback to get a label for
a LU bgp path could be called after the path had already
been freed. In this case we would be reading garbage
and potentially crash. Lock the path info before
queueing the callback, and unlock as the first step
of the callback, exiting gracefully if the path info
is now NULL.
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to 'lib/lib_errors.c')
0 files changed, 0 insertions, 0 deletions
