diff options
| author | zmw12306 <zmw12306@gmail.com> | 2025-03-31 00:08:38 -0400 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2025-04-10 14:56:48 +0000 |
| commit | fa79c5866b8380e90dfd9d07414910ba88f85dfc (patch) | |
| tree | dcb8ce1a5dc2ee28b823c1e03effee4a6e96cbdd | |
| parent | 5d634fea73bc9c5be626a59b25b190f2b212b8ff (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>
(cherry picked from commit 1571607c6bcba8f6861bdb90f472fe534df78a80)
| -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; |
