summaryrefslogtreecommitdiff
path: root/bgpd/bgp_ecommunity.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_ecommunity.c')
-rw-r--r--bgpd/bgp_ecommunity.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c
index de3757aebb..74cbf3a80a 100644
--- a/bgpd/bgp_ecommunity.c
+++ b/bgpd/bgp_ecommunity.c
@@ -327,6 +327,9 @@ void ecommunity_unintern(struct ecommunity **ecom)
{
struct ecommunity *ret;
+ if (!*ecom)
+ return;
+
if ((*ecom)->refcnt)
(*ecom)->refcnt--;