]> git.puffer.fish Git - mirror/frr.git/commit
nhrpd: fixes duplicate auth extension 16808/head
authorDenys Haryachyy <garyachy@gmail.com>
Thu, 12 Sep 2024 07:28:28 +0000 (07:28 +0000)
committerDenys Haryachyy <garyachy@gmail.com>
Thu, 12 Sep 2024 07:28:28 +0000 (07:28 +0000)
commit8e3c278bbcd0ced1d4058cc7a2c9aebdfbc8b651
tree80a8bcc79747bf2a6831264e933f5158c2d1bc81
parentbf1fa1b2dfeebb4fefcf3655111f30a766b6bc6d
nhrpd: fixes duplicate auth extension

When an NHRP peer was forwarding a message, it was copying all
extensions from the originally received packet. The authentication
extension must be regenerated hop by hop per RFC2332.
This fix checks for the auth extension when copying extensions
and omits the original packet auth and instead regenerates a new auth extension.

Fix bug #16507

Signed-off-by: Denys Haryachyy <garyachy@gmail.com>
nhrpd/nhrp_peer.c