summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/http_connection.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp
index 840f2b6ceb..ad6855f434 100644
--- a/http/http_connection.hpp
+++ b/http/http_connection.hpp
@@ -182,11 +182,13 @@ class Connection :
for (int i = 0; i < usage->length; i++)
{
- if (KU_DIGITAL_SIGNATURE & usage->data[i])
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
+ unsigned char usageChar = usage->data[i];
+ if (KU_DIGITAL_SIGNATURE & usageChar)
{
isKeyUsageDigitalSignature = true;
}
- if (KU_KEY_AGREEMENT & usage->data[i])
+ if (KU_KEY_AGREEMENT & usageChar)
{
isKeyUsageKeyAgreement = true;
}