From e59b9d2fff347bf779dff1fa8c945bc2a3c59d8b Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 9 Mar 2017 21:47:50 +0100 Subject: Various fixes in vala-xmpp --- xmpp-vala/src/module/tls.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xmpp-vala/src/module/tls.vala') diff --git a/xmpp-vala/src/module/tls.vala b/xmpp-vala/src/module/tls.vala index 1f8447ec..06535319 100644 --- a/xmpp-vala/src/module/tls.vala +++ b/xmpp-vala/src/module/tls.vala @@ -24,7 +24,9 @@ namespace Xmpp.Tls { private void received_nonza(XmppStream stream, StanzaNode node) { if (node.ns_uri == NS_URI && node.name == "proceed") { try { - var conn = TlsClientConnection.new(stream.get_stream(), identity); + var io_stream = stream.get_stream(); + if (io_stream == null) return; + var conn = TlsClientConnection.new(io_stream, identity); // TODO: Add certificate error handling, that is, allow the // program to handle certificate errors. The certificate // *is checked* by TlsClientConnection, and connection is -- cgit v1.2.3-54-g00ecf