]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remote_driver.c: also zero out ->saslDecodedOffset member
authorJim Meyering <meyering@redhat.com>
Mon, 14 Dec 2009 12:00:01 +0000 (13:00 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 15 Dec 2009 10:26:24 +0000 (11:26 +0100)
* src/remote/remote_driver.c (remoteIOReadMessage): ...rather than
zeroing out priv->saslDecodedLength twice.

src/remote/remote_driver.c

index affeb0f82cc1c3f35e78577bda448a938f7d2b4e..77962feae3229949d30ace94f2a236af32e4e028 100644 (file)
@@ -7782,7 +7782,7 @@ remoteIOReadMessage(virConnectPtr conn, struct private_data *priv,
         priv->saslDecodedOffset += wantData;
         priv->bufferOffset += wantData;
         if (priv->saslDecodedOffset == priv->saslDecodedLength) {
-            priv->saslDecodedLength = priv->saslDecodedLength = 0;
+            priv->saslDecodedOffset = priv->saslDecodedLength = 0;
             priv->saslDecoded = NULL;
         }