io: fix check for handshake completion in TLS test
commit689ed13e73bdb5a5ca3366524475e3065fae854a
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 29 Aug 2017 16:04:52 +0000 (29 17:04 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 5 Sep 2017 12:21:58 +0000 (5 13:21 +0100)
tree6f91badc14972dfacad1a83ab8db2f081e8e3bba
parentd4622e55883211072621958d39ddaa73483d201e
io: fix check for handshake completion in TLS test

The TLS I/O channel test had mistakenly used && instead
of || when checking for handshake completion. As a
result it could terminate the handshake process before
it had actually completed. This was harmless before but
changes in GNUTLS 3.6.0 exposed this bug and caused the
test suite to fail.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tests/test-io-channel-tls.c