]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Resolve COPY_PASTE error found by Coverity
authorJohn Ferlan <jferlan@redhat.com>
Tue, 8 Jan 2013 15:10:10 +0000 (10:10 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Jan 2013 15:21:46 +0000 (16:21 +0100)
Fix copy-paste error doing handshake.

The clientShake was not set to true, thus we'd potentially never leave
the handshake while loop.

tests/virnettlscontexttest.c

index a1e71dc5f59528e3f6946f2156c8861840e85720..49462df759d01356bf5f0adcee9330d029ebadd8 100644 (file)
@@ -662,7 +662,7 @@ static int testTLSSessionInit(const void *opaque)
             if (rv < 0)
                 goto cleanup;
             if (rv == VIR_NET_TLS_HANDSHAKE_COMPLETE)
-                serverShake = true;
+                clientShake = true;
         }
     } while (!clientShake && !serverShake);