Skip to content

Commit 32ed114

Browse files
authored
Merge pull request fooinha#4 from fooinha/fix/3
nginx-ssl-ja3: bad byte swap
2 parents 00f19bb + 1fa690d commit 32ed114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_ssl_ja3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ ngx_ssl_ja3(ngx_connection_t *c, ngx_pool_t *pool, ngx_ssl_ja3_t *ja3) {
334334
ngx_memcpy(ja3->ciphers, ciphers_out, len);
335335
#if NGX_HAVE_LITTLE_ENDIAN
336336
for (size_t i = 0; i < ja3->ciphers_sz; ++i) {
337-
ja3->ciphers[i] >>=8;
337+
ja3->ciphers[i] = (ja3->ciphers[i] >> 8) | (ja3->ciphers[i] << 8);
338338
}
339339
#endif
340340
}

0 commit comments

Comments
 (0)