diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-08-09 14:18:52 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-09-17 01:30:12 -0300 |
| commit | 8b1e3453da1a1674e05fd802209a5213d89b835b (patch) | |
| tree | 0ebdd34d6fbd402f8b90a7099b1800b7850f9d5d /tests/lib/test_buffer.c | |
| parent | 6cf38339223e17cf9e5073c8916e2fce0a469c5c (diff) | |
isisd: fix validation of prefix-sid flags
The original check would always evaluate to false since
ISIS_PREFIX_SID_VALUE and ISIS_PREFIX_SID_LOCAL have different
values. Use !! to normalize the return value of the individual
checks to either 0 or 1, making the code do what was intended
(ensure the V/L flags are both 0 or 1).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'tests/lib/test_buffer.c')
0 files changed, 0 insertions, 0 deletions
