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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c
index b419a203..07b8cf81 100644
--- a/bgpd/bgp_community.c
+++ b/bgpd/bgp_community.c
@@ -596,7 +596,7 @@ community_str2com (const char *str)
default:
if (com)
community_free (com);
- break;
+ return NULL;
}
} while (str);