mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Unit test and a bug fix for storing temporary secrets.
This commit is contained in:
@@ -718,7 +718,8 @@ abstract class JdbcDatabase implements Database<Connection> {
|
||||
// Store the new secrets
|
||||
String sql = "INSERT INTO secrets"
|
||||
+ " (contactId, transportId, period, secret, outgoing,"
|
||||
+ " centre, bitmap)";
|
||||
+ " centre, bitmap)"
|
||||
+ " VALUES (?, ?, ?, ?, ?, ?, ?)";
|
||||
ps = txn.prepareStatement(sql);
|
||||
for(TemporarySecret s : secrets) {
|
||||
ps.setInt(1, s.getContactId().getInt());
|
||||
|
||||
Reference in New Issue
Block a user