gnutls: Allow closing a connection cleanly if handshake fails
authorStef Walter <stefw@gnome.org>
Thu, 29 Nov 2012 10:01:45 +0000 (11:01 +0100)
committerStef Walter <stefw@gnome.org>
Thu, 29 Nov 2012 22:04:11 +0000 (23:04 +0100)
commit0084d6b8bd8a0f82ba7fb2fc8550cbb2159df5e9
tree78d1c3edb1fd35a86e39b391f876dfe51f929259
parent81a9ae337ed60fc4ef9abbf6f306d55554c5d7f8
gnutls: Allow closing a connection cleanly if handshake fails

Only set the internal ever_handshaked flag if the handshake was
successful. Otherwise using g_io_stream_close() after a handshake
failure results in an internal gnutls error.

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