diff options
author | fiaxh <git@lightrise.org> | 2020-12-31 23:19:06 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-12-31 23:19:06 +0100 |
commit | 2c22c0428cb53252930d52e6327f14a6fcc8cf03 (patch) | |
tree | a282774719bd346c47df955b7b35b7754fbf130d /xmpp-vala/src/core/stream_connect.vala | |
parent | c7b242a72e411f54192ae74f0bebaf090c4dc17a (diff) | |
download | dino-2c22c0428cb53252930d52e6327f14a6fcc8cf03.tar.gz dino-2c22c0428cb53252930d52e6327f14a6fcc8cf03.zip |
Fix segfault on accept_certificate signal (fixup 81a5505)
Diffstat (limited to 'xmpp-vala/src/core/stream_connect.vala')
-rw-r--r-- | xmpp-vala/src/core/stream_connect.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmpp-vala/src/core/stream_connect.vala b/xmpp-vala/src/core/stream_connect.vala index 9a3dac76..b58563f7 100644 --- a/xmpp-vala/src/core/stream_connect.vala +++ b/xmpp-vala/src/core/stream_connect.vala @@ -13,7 +13,7 @@ namespace Xmpp { public IOStreamError? io_error { get; set; } } - public async XmppStreamResult establish_stream(Jid bare_jid, Gee.List<XmppStreamModule> modules, string? log_options, TlsXmppStream.OnInvalidCert on_invalid_cert) { + public async XmppStreamResult establish_stream(Jid bare_jid, Gee.List<XmppStreamModule> modules, string? log_options, owned TlsXmppStream.OnInvalidCert on_invalid_cert) { Jid remote = bare_jid.domain_jid; //Lookup xmpp-client and xmpps-client SRV records @@ -58,9 +58,9 @@ namespace Xmpp { foreach (SrvTargetInfo target in targets) { try { if (target.service == "xmpp-client") { - stream = new StartTlsXmppStream(remote, target.host, target.port, on_invalid_cert); + stream = new StartTlsXmppStream(remote, target.host, target.port, (owned)on_invalid_cert); } else { - stream = new DirectTlsXmppStream(remote, target.host, target.port, on_invalid_cert); + stream = new DirectTlsXmppStream(remote, target.host, target.port, (owned)on_invalid_cert); } stream.log = new XmppLog(bare_jid.to_string(), log_options); |