diff options
author | Mark Stapp <mjs@voltanet.io> | 2019-01-17 17:25:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-17 17:25:45 +0100 |
commit | 70fc94ca1d6063b64449b0971678521c021ac916 (patch) | |
tree | 6b1a34a226f0c04b61f0634e1aabb1c05bbbcaf2 | |
parent | Merge pull request #3624 from mjstapp/fix_ldpd_bind (diff) | |
parent | bgpd: Use string length not sizeof the array (diff) | |
download | frr-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.h | 2 |
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 */ |