Merge pull request #16821 from FRRouting/mergify/bp/stable/9.1/pr-16808

nhrpd: fixes duplicate auth extension (backport #16808)
This commit is contained in:
Jafar Al-Gharaibeh 2024-09-13 14:11:33 -04:00 committed by GitHub
commit 3c89f63530
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -597,6 +597,12 @@ static void nhrp_handle_resolution_req(struct nhrp_packet_parser *pp)
nhrp_ext_complete(zb, ext);
}
break;
case NHRP_EXTENSION_AUTHENTICATION:
/* Extensions can be copied from original packet except
* authentication extension which must be regenerated
* hop by hop.
*/
break;
default:
if (nhrp_ext_reply(zb, hdr, ifp, ext, &payload) < 0)
goto err;