summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_community.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_community.c')
-rw-r--r--bgpd/bgp_community.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c
index a5dafd775..6e6a3cd58 100644
--- a/bgpd/bgp_community.c
+++ b/bgpd/bgp_community.c
@@ -497,6 +497,9 @@ void community_unintern(struct community **com)
{
struct community *ret;
+ if (!*com)
+ return;
+
if ((*com)->refcnt)
(*com)->refcnt--;