From f4c23a87d3b14cf5a3d4c953865a75eb99445d37 Mon Sep 17 00:00:00 2001 From: krigga Date: Tue, 26 Sep 2023 17:25:42 +0300 Subject: [PATCH] fix: address proof io --- src/handler/get_address_proof.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/handler/get_address_proof.c b/src/handler/get_address_proof.c index db0ecd4..f3f4a34 100644 --- a/src/handler/get_address_proof.c +++ b/src/handler/get_address_proof.c @@ -27,12 +27,13 @@ int handler_get_address_proof(uint8_t flags, buffer_t *cdata) { explicit_bzero(&G_context, sizeof(G_context)); - G_context.req_type = GET_PROOF; - G_context.state = STATE_NONE; if (!deserialize_proof(cdata, flags)) { - return -1; + return 0; } + G_context.req_type = GET_PROOF; + G_context.state = STATE_NONE; + return ui_display_proof(flags); }