Skip to content

Commit b4918ca

Browse files
committed
bugfix for pskExtension, now using extension length
1 parent 52b237a commit b4918ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/protocol/parser/extension/PreSharedKeyExtensionParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public PreSharedKeyExtensionParser(int startposition, byte[] array, Config confi
3535
public void parseExtensionMessageContent(PreSharedKeyExtensionMessage msg) {
3636
LOGGER.debug("Parsing PreSharedKeyExtensionMessage");
3737
// Client -> Server
38-
if (super.getBytesLeft() > 2) {
38+
if (msg.getExtensionLength().getValue() > 2) {
3939
parsePreSharedKeyIdentityListLength(msg);
4040
parsePreSharedKeyIdentityListBytes(msg);
4141
parsePreSharedKeyBinderListLength(msg);

0 commit comments

Comments
 (0)