mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Use getLong() to avoid remote possibility of overflow.
This commit is contained in:
@@ -2331,7 +2331,7 @@ abstract class JdbcDatabase implements Database<Connection> {
|
||||
ps.setInt(2, DELIVERED.getValue());
|
||||
rs = ps.executeQuery();
|
||||
rs.next();
|
||||
long total = rs.getInt(1);
|
||||
long total = rs.getLong(1);
|
||||
rs.close();
|
||||
ps.close();
|
||||
return total;
|
||||
|
||||
Reference in New Issue
Block a user