From a1f48491886f7ae17b030a2372716c2c1e614112 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 22 Jul 2019 17:18:29 +0200 Subject: [PATCH] serialize OK_TO_CONTINUE checks (preparing for deintendation) --- src/dc_qr.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dc_qr.rs b/src/dc_qr.rs index edcd2011e..ba5e62538 100644 --- a/src/dc_qr.rs +++ b/src/dc_qr.rs @@ -205,6 +205,8 @@ pub unsafe fn dc_check_qr(context: &Context, qr: *const libc::c_char) -> *mut dc OK_TO_CONTINUE = false; } } + } + { if OK_TO_CONTINUE { if !fingerprint.is_null() { if strlen(fingerprint) != 40 { @@ -216,6 +218,8 @@ pub unsafe fn dc_check_qr(context: &Context, qr: *const libc::c_char) -> *mut dc OK_TO_CONTINUE = false; } } + } + { if OK_TO_CONTINUE { if !fingerprint.is_null() { let peerstate =