diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-05-07 18:44:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-07 18:44:59 +0300 |
| commit | 0ef5ec616b6de47ad7e8cd229dcf11f99dce65fd (patch) | |
| tree | 5d25a7d9698a7ca36c2439ea449aaecd1c60f16a /isisd/isis_te.c | |
| parent | 00b0b7484735d7ffbd8897613cfb96e1ba02f67b (diff) | |
| parent | 14678bfa0d1c6cbf4346085676b1458461a0faaf (diff) | |
Merge pull request #11156 from donaldsharp/spelling_three
valgrind issues and general cleanup
Diffstat (limited to 'isisd/isis_te.c')
| -rw-r--r-- | isisd/isis_te.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_te.c b/isisd/isis_te.c index 1a1e0dc294..579ae6aaba 100644 --- a/isisd/isis_te.c +++ b/isisd/isis_te.c @@ -439,7 +439,7 @@ static struct ls_vertex *lsp_to_vertex(struct ls_ted *ted, struct isis_lsp *lsp) SET_FLAG(lnode.flags, LS_NODE_ROUTER_ID6); } if (tlvs->hostname) { - memcpy(&lnode.name, tlvs->hostname, MAX_NAME_LENGTH); + strlcpy(lnode.name, tlvs->hostname, MAX_NAME_LENGTH); SET_FLAG(lnode.flags, LS_NODE_NAME); } if (tlvs->router_cap) { @@ -909,7 +909,7 @@ static int lsp_to_subnet_cb(const struct prefix *prefix, uint32_t metric, p.u.prefix6 = std->local6; } if (!std) - p = *prefix; + prefix_copy(&p, prefix); else te_debug(" |- Adjust prefix %pFX with local address to: %pFX", prefix, &p); |
