]> git.proxmox.com Git - mirror_frr.git/commit - ospfd/ospf_vty.c
ospfd: buffer termination (Coverity 23089)
authorpaco <paco@voltanet.io>
Wed, 13 Jun 2018 12:43:18 +0000 (14:43 +0200)
committerpaco <paco@voltanet.io>
Thu, 14 Jun 2018 15:43:19 +0000 (17:43 +0200)
commit1f9d4e3d498a12882285dcd2a40ed60ca3a862af
tree11d05322bc82f53ca94f02035b221b7765dc18fc
parent9eafc8abd74a4d8144c764e0361dbb2a51da91c9
ospfd: buffer termination (Coverity 23089)

Details:
- INET_ADDRSTRLEN is 16, for xxx.xxx.xxx\0, so 15 is now passed
 to the strncpy call instead of 16, ensuring ASCII-z output

Signed-off-by: F. Aragon <paco@voltanet.io>
ospfd/ospf_vty.c
ospfd/ospf_vty.h