Skip to content

Commit dfd84e3

Browse files
authored
Update WebAuthn.sol
1 parent c454de7 commit dfd84e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/utils/cryptography/WebAuthn.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ library WebAuthn {
247247
*/
248248
function tryDecodeAuth(bytes calldata input) internal pure returns (bool success, WebAuthnAuth calldata auth) {
249249
// Default result (optimistic)
250-
success = true;
251250
assembly ("memory-safe") {
252251
auth := input.offset
253252
}
@@ -274,5 +273,7 @@ library WebAuthn {
274273
input.length - authenticatorDataOffset - 0x20 < authenticatorDataLength ||
275274
input.length - clientDataJSONOffset - 0x20 < clientDataJSONLength
276275
) return (false, auth);
276+
277+
return (true, auth);
277278
}
278279
}

0 commit comments

Comments
 (0)