]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: make reason string production safer
authorMark Stapp <mjs@voltanet.io>
Wed, 14 Oct 2020 16:51:52 +0000 (12:51 -0400)
committerMark Stapp <mjs@voltanet.io>
Wed, 14 Oct 2020 16:51:52 +0000 (12:51 -0400)
commitd05d5280e6472a6bc2c8aa8bfcae4f3fca0894da
tree3a561fb79f40565eb722ea3c6fe46f8647d96376
parent6431621e4eb11c4b85d6c29f79d060d59b0ed5d2
ospfd: make reason string production safer

Use to-string functions for GR message codes instead of raw
string array indexing; the values used can come in packets
and are not validated.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
ospfd/ospf_gr_helper.c
ospfd/ospf_gr_helper.h
ospfd/ospf_vty.c