Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
9a6c3ce8
Commit
9a6c3ce8
authored
Apr 26, 2017
by
GwendoCG
Committed by
Juliusz Chroboczek
Jul 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing of sub-TLVs.
parent
2eed758a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
message.c
message.c
+4
-4
No files found.
message.c
View file @
9a6c3ce8
...
...
@@ -299,12 +299,12 @@ parse_other_subtlv(const unsigned char *a, int alen)
}
if
(
i
+
1
>
alen
)
{
fprintf
(
stderr
,
"Received truncated sub-TLV
on IHU
.
\n
"
);
fprintf
(
stderr
,
"Received truncated sub-TLV.
\n
"
);
return
-
1
;
}
len
=
a
[
i
+
1
];
if
(
i
+
len
>
alen
)
{
fprintf
(
stderr
,
"Received truncated sub-TLV
on IHU
.
\n
"
);
fprintf
(
stderr
,
"Received truncated sub-TLV.
\n
"
);
return
-
1
;
}
...
...
@@ -586,7 +586,7 @@ parse_packet(const unsigned char *from, struct interface *ifp,
format_address
(
from
),
ifp
->
name
);
if
(
message
[
2
]
==
0
)
{
rc
=
parse_other_subtlv
(
message
+
12
,
len
-
8
);
rc
=
parse_other_subtlv
(
message
+
12
,
len
-
10
);
if
(
rc
<
0
)
goto
done
;
if
(
metric
<
0xFFFF
)
{
...
...
@@ -731,7 +731,7 @@ parse_packet(const unsigned char *from, struct interface *ifp,
if
(
ae
==
0
)
{
debugf
(
"Received invalid Source-Specific wildcard update.
\n
"
);
rc
=
parse_other_subtlv
(
message
+
12
,
len
-
8
);
rc
=
parse_other_subtlv
(
message
+
12
,
len
-
10
);
if
(
rc
<
0
)
goto
done
;
retract_neighbour_routes
(
neigh
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment