Browse Source

add:失败返回nil

Dozingfiretruck 3 years ago
parent
commit
a221afecae
1 changed files with 1 additions and 2 deletions
  1. 1 2
      components/crypto/luat_crypto_mbedtls.c

+ 1 - 2
components/crypto/luat_crypto_mbedtls.c

@@ -170,8 +170,7 @@ _exit:
 _error_exit:
 	luat_heap_free(temp);
 	mbedtls_cipher_free(&ctx);
-	lua_pushboolean(L, 0);
-	return 1;
+	return 0;
 }