summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_clist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_clist.h b/bgpd/bgp_clist.h
index 9cf8a14a6..75a31611b 100644
--- a/bgpd/bgp_clist.h
+++ b/bgpd/bgp_clist.h
@@ -173,7 +173,7 @@ lcommunity_list_match_delete(struct lcommunity *lcom,
static inline uint32_t bgp_clist_hash_key(char *name)
{
- return jhash(name, sizeof(name), 0xdeadbeaf);
+ return jhash(name, strlen(name), 0xdeadbeaf);
}
#endif /* _QUAGGA_BGP_CLIST_H */