Commit 5737bd2
committed
Fix crash: null socket check in Connection::write()
During header sync, peers disconnect (EOF) asynchronously. If a
chain tip changed handler fires request_full_block() after the
peer disconnected but before the connection was removed, writing
to the null m_socket caused SIGSEGV (signal 11).
Add null guard in Connection::write() — skip if socket is gone.1 parent f002c48 commit 5737bd2
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
0 commit comments