mirror of https://gitee.com/openkylin/libvirt.git
rpc: add mising locking in virNetClientStreamRecvHole
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
4deed5f3c7
commit
8457fd5034
|
@ -644,8 +644,12 @@ virNetClientStreamRecvHole(virNetClientPtr client ATTRIBUTE_UNUSED,
|
|||
return -1;
|
||||
}
|
||||
|
||||
virObjectLock(st);
|
||||
|
||||
*length = st->holeLength;
|
||||
st->holeLength = 0;
|
||||
|
||||
virObjectUnlock(st);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue