ソースを参照

add:失败返回nil

Dozingfiretruck 3 年 前
コミット
a221afecae
1 ファイル変更1 行追加2 行削除
  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;
 }