mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
remote_driver.c: also zero out ->saslDecodedOffset member
* src/remote/remote_driver.c (remoteIOReadMessage): ...rather than zeroing out priv->saslDecodedLength twice.
This commit is contained in:
parent
dd16045041
commit
49226d2ce4
@ -7782,7 +7782,7 @@ remoteIOReadMessage(virConnectPtr conn, struct private_data *priv,
|
|||||||
priv->saslDecodedOffset += wantData;
|
priv->saslDecodedOffset += wantData;
|
||||||
priv->bufferOffset += wantData;
|
priv->bufferOffset += wantData;
|
||||||
if (priv->saslDecodedOffset == priv->saslDecodedLength) {
|
if (priv->saslDecodedOffset == priv->saslDecodedLength) {
|
||||||
priv->saslDecodedLength = priv->saslDecodedLength = 0;
|
priv->saslDecodedOffset = priv->saslDecodedLength = 0;
|
||||||
priv->saslDecoded = NULL;
|
priv->saslDecoded = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user