]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_lcommunity.c
bgpd: Use get/set helpers for attr->lcommunity
[mirror_frr.git] / bgpd / bgp_lcommunity.c
index 9d8196878992e111c23d391632c5ec4bd159d610..60ad75c73bef07abbc48c86caec842fd8fd0348c 100644 (file)
@@ -274,6 +274,9 @@ void lcommunity_unintern(struct lcommunity **lcom)
 {
        struct lcommunity *ret;
 
+       if (!*lcom)
+               return;
+
        if ((*lcom)->refcnt)
                (*lcom)->refcnt--;