serialize OK_TO_CONTINUE checks (preparing for deintendation)

This commit is contained in:
holger krekel
2019-07-22 17:18:29 +02:00
parent e5a9761233
commit a1f4849188

View File

@@ -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 =