practicalswift 63c2d83e58 Explicitly state assumption that state.m_chain_sync.m_work_header != nullptr in ConsiderEviction
Static analyzer (and humans!) will see ...

```
else if (state.m_chain_sync.m_timeout == 0 || (state.m_chain_sync.m_work_header != nullptr && ...
```

... and infer that state.m_chain_sync.m_work_header might be set to nullptr,
and thus flag `state.m_chain_sync.m_work_header->GetBlockHash().ToString()`
as a potential null pointer dereference.

This commit makes the tacit assumption (m_work_header != nullptr) explicit.

Code introduced in 5a6d00 ("Permit disconnection of outbound peers on
bad/slow chains") which was merged into master four days ago.
2017-11-10 15:37:37 +01:00
..
2017-09-29 16:02:39 +02:00
2017-07-15 14:28:40 +02:00
2017-10-09 19:14:47 +02:00
2017-09-07 11:17:35 +08:00
2017-11-06 19:29:20 -08:00
2017-09-29 14:50:30 +08:00
2017-09-21 23:40:33 -07:00
2017-10-09 10:37:40 +02:00
2017-09-18 13:47:47 -04:00
2017-11-09 13:16:03 +01:00
2017-09-30 22:43:55 +01:00
2017-10-29 21:12:12 +08:00
2017-07-22 09:55:57 +02:00