aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/tls.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-09 21:47:50 +0100
committerMarvin W <git@larma.de>2017-03-10 17:33:27 +0100
commite59b9d2fff347bf779dff1fa8c945bc2a3c59d8b (patch)
tree07af25dc13f85628b9f9a6c1081fee54252301ce /xmpp-vala/src/module/tls.vala
parent93fd134a92fb50cc6e8a9b5db3d6f25e84e6fa10 (diff)
downloaddino-e59b9d2fff347bf779dff1fa8c945bc2a3c59d8b.tar.gz
dino-e59b9d2fff347bf779dff1fa8c945bc2a3c59d8b.zip
Various fixes in vala-xmpp
Diffstat (limited to 'xmpp-vala/src/module/tls.vala')
-rw-r--r--xmpp-vala/src/module/tls.vala4
1 files changed, 3 insertions, 1 deletions
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