-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for a potential inifite loop in PrepareToReadVendorReservedElements
When scanning up through the elements in search of a Vendor Reserved element, `PrepareToReadVendorReser` would call `mTlvReader.Next()` inside a `while (true)` loop. Should the `TLVReader::Next()` return an error other than `END_OF_TLV` the loop reader would neither advance nor exit the loop. The change exits the function on any way in a way that parallels the earlier error checks on TLVReader errors.
- Loading branch information
1 parent
02d8302
commit a416fbd
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters