summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-10-08 13:51:15 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-10-08 13:51:15 +0200
commit95f473e0d29f4ec39e66aea296b4364bcf34b4ee (patch)
tree2b439809e1f65e84408fde42880d85dbaa2f68da /bgpd
parentMerge pull request #9727 from ton31337/feature/catch_struct_thread_xxx_agains... (diff)
downloadfrr-95f473e0d29f4ec39e66aea296b4364bcf34b4ee.tar.xz
frr-95f473e0d29f4ec39e66aea296b4364bcf34b4ee.zip
bgpd: don't return pointer to a local variable
CID 1507651. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_table.c b/bgpd/bgp_table.c
index 376172a6f..4ed8c7c59 100644
--- a/bgpd/bgp_table.c
+++ b/bgpd/bgp_table.c
@@ -88,7 +88,7 @@ struct bgp_dest *bgp_dest_lock_node(struct bgp_dest *dest)
const char *bgp_dest_get_prefix_str(struct bgp_dest *dest)
{
const struct prefix *p = NULL;
- char str[PREFIX_STRLEN] = {0};
+ static char str[PREFIX_STRLEN] = {0};
p = bgp_dest_get_prefix(dest);
if (p)