From 2c22c0428cb53252930d52e6327f14a6fcc8cf03 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 31 Dec 2020 23:19:06 +0100 Subject: Fix segfault on accept_certificate signal (fixup 81a5505) --- libdino/src/service/connection_manager.vala | 2 +- libdino/src/service/registration.vala | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libdino/src') diff --git a/libdino/src/service/connection_manager.vala b/libdino/src/service/connection_manager.vala index 3ea6386b..e0f4e19c 100644 --- a/libdino/src/service/connection_manager.vala +++ b/libdino/src/service/connection_manager.vala @@ -197,7 +197,7 @@ public class ConnectionManager : Object { change_connection_state(account, ConnectionState.CONNECTING); stream_result = yield Xmpp.establish_stream(account.bare_jid, module_manager.get_modules(account, resource), log_options, - (_, peer_cert, errors) => { return on_invalid_certificate(account.domainpart, peer_cert, errors); } + (peer_cert, errors) => { return on_invalid_certificate(account.domainpart, peer_cert, errors); } ); connections[account].stream = stream_result.stream; diff --git a/libdino/src/service/registration.vala b/libdino/src/service/registration.vala index 365f31b0..4255f322 100644 --- a/libdino/src/service/registration.vala +++ b/libdino/src/service/registration.vala @@ -30,7 +30,7 @@ public class Register : StreamInteractionModule, Object{ list.add(new Sasl.Module(account.bare_jid.to_string(), account.password)); XmppStreamResult stream_result = yield Xmpp.establish_stream(account.bare_jid.domain_jid, list, Application.print_xmpp, - (_, peer_cert, errors) => { return ConnectionManager.on_invalid_certificate(account.domainpart, peer_cert, errors); } + (peer_cert, errors) => { return ConnectionManager.on_invalid_certificate(account.domainpart, peer_cert, errors); } ); if (stream_result.stream == null) { @@ -83,7 +83,7 @@ public class Register : StreamInteractionModule, Object{ list.add(new Iq.Module()); XmppStreamResult stream_result = yield Xmpp.establish_stream(jid.domain_jid, list, Application.print_xmpp, - (_, peer_cert, errors) => { return ConnectionManager.on_invalid_certificate(jid.domainpart, peer_cert, errors); } + (peer_cert, errors) => { return ConnectionManager.on_invalid_certificate(jid.domainpart, peer_cert, errors); } ); if (stream_result.stream == null) { @@ -137,7 +137,7 @@ public class Register : StreamInteractionModule, Object{ list.add(new Xep.InBandRegistration.Module()); XmppStreamResult stream_result = yield Xmpp.establish_stream(jid.domain_jid, list, Application.print_xmpp, - (_, peer_cert, errors) => { return ConnectionManager.on_invalid_certificate(jid.domainpart, peer_cert, errors); } + (peer_cert, errors) => { return ConnectionManager.on_invalid_certificate(jid.domainpart, peer_cert, errors); } ); if (stream_result.stream == null) { @@ -188,7 +188,7 @@ public class Register : StreamInteractionModule, Object{ list.add(new Xep.InBandRegistration.Module()); XmppStreamResult stream_result = yield Xmpp.establish_stream(jid.domain_jid, list, Application.print_xmpp, - (_, peer_cert, errors) => { return ConnectionManager.on_invalid_certificate(jid.domainpart, peer_cert, errors); } + (peer_cert, errors) => { return ConnectionManager.on_invalid_certificate(jid.domainpart, peer_cert, errors); } ); if (stream_result.stream == null) { -- cgit v1.2.3-70-g09d2