From 00fcfeaf48c718b882771587f9e7e68952c7eee4 Mon Sep 17 00:00:00 2001
From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net>
Date: Sun, 20 Oct 2019 18:03:38 +0700
Subject: [PATCH] [*] Changed call of hash function

---
 dap_server_http_db_auth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dap_server_http_db_auth.c b/dap_server_http_db_auth.c
index 8cd6bf9..f691864 100755
--- a/dap_server_http_db_auth.c
+++ b/dap_server_http_db_auth.c
@@ -107,7 +107,7 @@ char* dap_server_http_db_auth_create_key_hash(const char *a_wallet_name, char **
 
     // make dap_chain_sign_t hash
     dap_chain_hash_fast_t l_sign_hash;
-    if(dap_hash_fast(l_chain_sign, l_chain_sign_size, &l_sign_hash) < 0) {
+    if(!dap_hash_fast(l_chain_sign, l_chain_sign_size, &l_sign_hash) ) {
         return NULL;
     }
 
-- 
GitLab