babeld: fix incorrect type assignment in parse_request_subtlv

parse_request_subtlv accesses type using fixed offset instead of current position.

Signed-off-by: zmw12306 <zmw12306@gmail.com>
(cherry picked from commit 1571607c6b)
This commit is contained in:
zmw12306 2025-03-31 00:08:38 -04:00 committed by Mergify
parent 5d634fea73
commit fa79c5866b

View file

@ -290,7 +290,7 @@ parse_request_subtlv(int ae, const unsigned char *a, int alen,
int have_src_prefix = 0;
while(i < alen) {
type = a[0];
type = a[i];
if(type == SUBTLV_PAD1) {
i++;
continue;