summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-01-17 17:25:45 +0100
committerGitHub <noreply@github.com>2019-01-17 17:25:45 +0100
commit70fc94ca1d6063b64449b0971678521c021ac916 (patch)
tree6b1a34a226f0c04b61f0634e1aabb1c05bbbcaf2
parentMerge pull request #3624 from mjstapp/fix_ldpd_bind (diff)
parentbgpd: Use string length not sizeof the array (diff)
downloadfrr-70fc94ca1d6063b64449b0971678521c021ac916.tar.xz
frr-70fc94ca1d6063b64449b0971678521c021ac916.zip
Merge pull request #3625 from donaldsharp/clist_strlen
bgpd: Use string length not sizeof the array
-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 */