diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-01 20:30:13 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-02 20:58:35 +0300 |
| commit | 03e3333b110e737c49f97113ef0baab679488019 (patch) | |
| tree | a96306b756a5faa0f5ebfec9aff282fbf567c429 /lib/vrf.c | |
| parent | 2030df4d3094e77c91932efd4056a6a3c3e97752 (diff) | |
bfdd: fix bfd key structure
There's a padding byte between "mhop" and "peer" fields in this structure.
This structure is sometimes passed by value to functions and used in
assignments. The standard doesn't guarantee that the padding bytes are
copied on assignments. As this structure is used as a hash key, having
this padding byte with unspecified value can lead to unwanted behavior.
Fix the possible issue by making the "mhop" field to be 2 bytes. Also
make the struct packed as a precaution for future changes.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/vrf.c')
0 files changed, 0 insertions, 0 deletions
