Skip to content

Commit

Permalink
tidy up literal
Browse files Browse the repository at this point in the history
  • Loading branch information
sftcd committed Sep 10, 2023
1 parent aba1e43 commit 0ff1629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssl/ech.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ static int ech_guess_fmt(size_t eklen, const unsigned char *rrval,
cp = (unsigned char*)rrval;
if (eklen > 4
&& eklen == ((size_t)(cp[0])*256+(size_t)(cp[1])) + 2
&& cp[3] == 0xfe
&& cp[4] == 0x0d) {
&& cp[3] == ((OSSL_ECH_DRAFT_13_VERSION / 256) & 0xff)
&& cp[4] == ((OSSL_ECH_DRAFT_13_VERSION % 256) & 0xff)) {
*guessedfmt = OSSL_ECH_FMT_BIN;
return 1;
}
Expand Down

0 comments on commit 0ff1629

Please sign in to comment.