diff options
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--; |
