forked from Mirror/frr
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:
parent
5d634fea73
commit
fa79c5866b
|
@ -290,7 +290,7 @@ parse_request_subtlv(int ae, const unsigned char *a, int alen,
|
||||||
int have_src_prefix = 0;
|
int have_src_prefix = 0;
|
||||||
|
|
||||||
while(i < alen) {
|
while(i < alen) {
|
||||||
type = a[0];
|
type = a[i];
|
||||||
if(type == SUBTLV_PAD1) {
|
if(type == SUBTLV_PAD1) {
|
||||||
i++;
|
i++;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue