Skip to content

Commit fa2d536

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
++ tls extension reader
1 parent 1982463 commit fa2d536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/process/common/tlsParser/extensionReaders/extensionReader.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ class ExtensionReader : public RangeReader {
5050
if (sizeof(type) + sizeof(length) + length > payload.size()) {
5151
return std::nullopt;
5252
}
53-
payload = payload.subspan(sizeof(type) + sizeof(length) + length);
5453

5554
const std::byte* extensionBegin = payload.data() + sizeof(type) + sizeof(length);
55+
payload = payload.subspan(sizeof(type) + sizeof(length) + length);
5656
return TLSExtension {type, {extensionBegin, length}};
5757
});
5858
}

0 commit comments

Comments
 (0)