We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8501a08 commit f51c53dCopy full SHA for f51c53d
lib/ja5.h
@@ -82,10 +82,10 @@ typedef struct {
82
unsigned short elliptic_curve_hash;
83
} TlsJa5t;
84
85
-#define HTTP_JA5H_CALC_NUM(val, max, num) \
86
- ({ \
87
- typeof(max) x = (val) < (max) ? (val) + (num) : (val); \
88
- x; \
+#define HTTP_JA5H_CALC_NUM(val, max, num) \
+ ({ \
+ typeof(max) x = (val) + (num) < (max) ? (val) + (num) : (max); \
+ x; \
89
})
90
91
#define HTTP_JA5H_REQ_CALC_NUM(req, name, max, num) \
0 commit comments