diff options
| author | MarcoFalke <[email protected]> | 2017-01-22 13:17:37 +0100 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2017-01-22 13:17:41 +0100 |
| commit | 0b96abc35f1a9d46a27eeddd7df418d107c29c57 (patch) | |
| tree | 6b43dd889eef2f627f0cfec501bdcb8b568aaf22 /src | |
| parent | qt: Periodic translation update (diff) | |
| parent | [test] Avoid potential NULL pointer dereference in addrman_tests.cpp (diff) | |
| download | discoin-0b96abc35f1a9d46a27eeddd7df418d107c29c57.tar.xz discoin-0b96abc35f1a9d46a27eeddd7df418d107c29c57.zip | |
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 48313915e..322addc9f 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. |