Skip to content

Commit 2d6c886

Browse files
committed
Fixed accidental record crypto computations overwrite on double prepare
1 parent e9d90f0 commit 2d6c886

File tree

1 file changed

+3
-1
lines changed
  • TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/record

1 file changed

+3
-1
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/record/Record.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ public void setComputations(RecordCryptoComputations computations) {
134134

135135
@Override
136136
public void prepareComputations() {
137-
this.computations = new RecordCryptoComputations();
137+
if (computations == null) {
138+
this.computations = new RecordCryptoComputations();
139+
}
138140
}
139141
}

0 commit comments

Comments
 (0)