Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
socket: fix user-after-free on name resolution error (#3471)
When a connection attempt fails, a new thread is created to clean it up due to some potential deadlocks. However this new thread was executed without a reference on the rpc transport when name resolution failed, making it use stale pointer in some cases and causing a crash. The fix makes sure that the thread always has a valid reference. Fixes: #3470 Change-Id: Iebff6cd95602a6cfc3f81a0c6781f20fd1a76638 Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
- Loading branch information