diff options
author | paco <paco@voltanet.io> | 2018-06-19 10:40:56 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-19 10:40:56 +0200 |
commit | 6d10727ac13e5b80c3d5f8b42acf17cebb3f9d5a (patch) | |
tree | d6cbf6a8295df6c4e414331c69df515666e8d5a8 /tests/lib | |
parent | Merge pull request #2476 from pacovn/Coverity_1433544_Explicit_null_dereferenced (diff) | |
download | frr-6d10727ac13e5b80c3d5f8b42acf17cebb3f9d5a.tar.xz frr-6d10727ac13e5b80c3d5f8b42acf17cebb3f9d5a.zip |
eigrpd, lib, tests, vtysh: security (cppcheck)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/test_srcdest_table.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/lib/test_srcdest_table.c b/tests/lib/test_srcdest_table.c index 408f4e058..04e85435d 100644 --- a/tests/lib/test_srcdest_table.c +++ b/tests/lib/test_srcdest_table.c @@ -104,9 +104,7 @@ static unsigned int log_key(void *data) static int log_cmp(const void *a, const void *b) { - if (a == NULL && b != NULL) - return 0; - if (b == NULL && a != NULL) + if (a == NULL || b == NULL) return 0; return !memcmp(a, b, 2 * sizeof(struct prefix)); |