gnutls: Don't hang trying to handshake, if early close
authorStef Walter <stefw@gnome.org>
Thu, 29 Nov 2012 12:51:46 +0000 (13:51 +0100)
committerStef Walter <stefw@gnome.org>
Thu, 29 Nov 2012 22:22:40 +0000 (23:22 +0100)
commit58fd3d5355f09d2480dfb69a446bf7018ef07914
tree43d17b1228e77c34fb210c34fe8d684665be93ba
parent8576a5ff5103c126d5889ed782856f01512aa11a
gnutls: Don't hang trying to handshake, if early close

When closing a connection before the handshake, the GTlsConnectionGnutls
code would try to do a handshake. Fix this, and test for it.

https://bugzilla.gnome.org/show_bug.cgi?id=689271
tls/gnutls/gtlsconnection-gnutls.c
tls/tests/connection.c