Instead of forcing a NUL into struct ctl_neighbor descr adjust the
authorclaudio <claudio@openbsd.org>
Fri, 4 Aug 2023 09:20:12 +0000 (09:20 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 4 Aug 2023 09:20:12 +0000 (09:20 +0000)
commit2b366655dffc140e4404f931c52ab6490542647e
treea370574fc1fbda4da22e2d79c2ccb6bff12b2cc5
parent80ab6b62a5ad84e460110a60d88a5bd3a8ea0e51
Instead of forcing a NUL into struct ctl_neighbor descr adjust the
peer matching code to only match at maximum sizeof(n->descr) bytes
using strncmp().
OK tb@
usr.sbin/bgpd/control.c
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/session.c