diff options
author | MarcoFalke <falke.marco@gmail.com> | 2017-01-22 13:17:37 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-01-22 13:17:41 +0100 |
commit | 0b96abc35f1a9d46a27eeddd7df418d107c29c57 (patch) | |
tree | 6b43dd889eef2f627f0cfec501bdcb8b568aaf22 /src | |
parent | af01cd3a3d0647c071e94d7b0bda7128fb9aeebe (diff) | |
parent | afab9f47f619120f22e5d586d417c71551f8d000 (diff) |
Merge #9554: [test] Avoid potential NULL pointer dereference in addrman_tests.cpp
afab9f4 [test] Avoid potential NULL pointer dereference in addrman_tests.cpp (practicalswift)
Diffstat (limited to 'src')
-rw-r--r-- | src/test/addrman_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/addrman_tests.cpp b/src/test/addrman_tests.cpp index 48313915e7..322addc9f6 100644 --- a/src/test/addrman_tests.cpp +++ b/src/test/addrman_tests.cpp @@ -297,7 +297,7 @@ BOOST_AUTO_TEST_CASE(addrman_find) // Test 18; Find does not discriminate by port number. CAddrInfo* info2 = addrman.Find(addr2); BOOST_CHECK(info2); - if (info2) + if (info2 && info1) BOOST_CHECK(info2->ToString() == info1->ToString()); // Test 19: Find returns another IP matching what we searched on. |