diff options
author | 2023-01-20 02:19:23 -0800 | |
---|---|---|
committer | 2023-01-20 02:19:23 -0800 | |
commit | e3ed905b0a6d9658b033ec978a1f3445bc180a74 (patch) | |
tree | affe667f17a60339d8328c3db60cf6bc2f391f18 | |
parent | 224312c014000e2f5a51c6c4db9a2885109cc0c5 (diff) | |
download | bun-e3ed905b0a6d9658b033ec978a1f3445bc180a74.tar.gz bun-e3ed905b0a6d9658b033ec978a1f3445bc180a74.tar.zst bun-e3ed905b0a6d9658b033ec978a1f3445bc180a74.zip |
Clear the errors
-rw-r--r-- | src/bun.js/webcore.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bun.js/webcore.zig b/src/bun.js/webcore.zig index 3a7a978f0..4478337b5 100644 --- a/src/bun.js/webcore.zig +++ b/src/bun.js/webcore.zig @@ -461,6 +461,7 @@ pub const Crypto = struct { null, 0, ) != 1)) { + BoringSSL.ERR_clear_error(); return globalThis.createErrorInstance("scrypt parameters are invalid", .{}); } var slice: []u8 = undefined; @@ -577,6 +578,7 @@ pub const Crypto = struct { buf.ptr, keylen, ) != 1) { + BoringSSL.ERR_clear_error(); return globalThis.createErrorInstance("Failed to derive key", .{}); } |