From 286cd480d844475d545ca90e422e4a0f72f851ca Mon Sep 17 00:00:00 2001 From: dequis Date: Sat, 27 Sep 2014 11:54:35 -0300 Subject: Prevent some "Source ID ## was not found..." warnings These appear in glib 2.40, and, well, are pretty much useless. But people complain about them anyway. Probably fixes trac ticket 1151, at least partially. --- lib/ssl_gnutls.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/ssl_gnutls.c') diff --git a/lib/ssl_gnutls.c b/lib/ssl_gnutls.c index 9965fbf7..f6bdd6b2 100644 --- a/lib/ssl_gnutls.c +++ b/lib/ssl_gnutls.c @@ -334,6 +334,9 @@ static gboolean ssl_handshake( gpointer data, gint source, b_input_condition con struct scd *conn = data; int st, stver; + /* This function returns false, so avoid calling b_event_remove again */ + conn->inpa = -1; + if( ( st = gnutls_handshake( conn->session ) ) < 0 ) { if( st == GNUTLS_E_AGAIN || st == GNUTLS_E_INTERRUPTED ) -- cgit v1.2.3