diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-09 13:44:25 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-10 11:04:03 +0200 |
| commit | 1bcf3a96de9923af1ab6c95d4f59f90374015336 (patch) | |
| tree | 9c2ad0eaf24972c06001a9d6a327f01e7aafb78b /bgpd/bgp_lcommunity.c | |
| parent | eae63cb501ad3eb293ad559b00934261defcfe11 (diff) | |
bgpd: Use get/set helpers for attr->lcommunity
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_lcommunity.c')
| -rw-r--r-- | bgpd/bgp_lcommunity.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_lcommunity.c b/bgpd/bgp_lcommunity.c index 9d81968789..60ad75c73b 100644 --- a/bgpd/bgp_lcommunity.c +++ b/bgpd/bgp_lcommunity.c @@ -274,6 +274,9 @@ void lcommunity_unintern(struct lcommunity **lcom) { struct lcommunity *ret; + if (!*lcom) + return; + if ((*lcom)->refcnt) (*lcom)->refcnt--; |
