msg: Append multiple TLVs correctly.
The logic that adds TLVs to the end of a message mixes up the 'L' length in "TLV" with the total TLV length. As a result, the second and subsequent TLVs will corrupt the previous TLV in the buffer. This patch corrects the code to find the correct offset for the second and following appended TLVs. Note that the stack does not currently trigger this latent bug because only single TLVs are appended. Fixes: 4a8877f90462 ("msg: Introduce method for appending multiple TLVs on transmit.") Signed-off-by: Richard Cochran <richardcochran@gmail.com>
This commit is contained in:
parent
d8a9591dac
commit
d14f11fd32
Loading…
x
Reference in New Issue
Block a user