mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Validate the decrypted IV before creating a reader/writer.
This commit is contained in:
@@ -49,8 +49,8 @@ class OutgoingBatchConnection {
|
||||
byte[] secret = db.getSharedSecret(contactId);
|
||||
long connection = db.getConnectionNumber(contactId, transportId);
|
||||
ConnectionWriter conn = connFactory.createConnectionWriter(
|
||||
writer.getOutputStream(), writer.getCapacity(), true,
|
||||
transportId, connection, secret);
|
||||
writer.getOutputStream(), writer.getCapacity(), transportId,
|
||||
connection, secret);
|
||||
OutputStream out = conn.getOutputStream();
|
||||
// There should be enough space for a packet
|
||||
long capacity = conn.getRemainingCapacity();
|
||||
|
||||
Reference in New Issue
Block a user