diff options
| author | zmw12306 <zmw12306@gmail.com> | 2025-03-31 00:08:38 -0400 |
|---|---|---|
| committer | zmw12306 <zmw12306@gmail.com> | 2025-03-31 00:08:38 -0400 |
| commit | 1571607c6bcba8f6861bdb90f472fe534df78a80 (patch) | |
| tree | 9b770747fe879d9005ddf9c242f6f91c949ff941 | |
| parent | 44c4743e08710fd9dda12105ff6fbec2547faf51 (diff) | |
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>
| -rw-r--r-- | babeld/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/message.c b/babeld/message.c index 5a33d5c288..3e74c64ebb 100644 --- a/babeld/message.c +++ b/babeld/message.c @@ -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; |
