mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
Fix possible infinite loop in remote driver
When we take out completed calls from queue we might end up in circular pointer. We don't want pointer to previous item point to element taken out.
This commit is contained in:
parent
99fa30804b
commit
50e4b9195d
@ -10672,8 +10672,9 @@ remoteIOEventLoop(virConnectPtr conn,
|
||||
*/
|
||||
VIR_DEBUG("Waking up sleep %d %p %p", tmp->proc_nr, tmp, priv->waitDispatch);
|
||||
virCondSignal(&tmp->cond);
|
||||
} else {
|
||||
prev = tmp;
|
||||
}
|
||||
prev = tmp;
|
||||
tmp = tmp->next;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user