Fix possible off-by-one error in KeyBruteForcer

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent e9f040df79
commit cf8110e5a7
  1. 2
      archive/src/main/kotlin/org/openrs2/archive/key/KeyBruteForcer.kt

@ -207,7 +207,7 @@ public class KeyBruteForcer @Inject constructor(
"""
SELECT id, data
FROM containers
WHERE encrypted AND key_id IS NULL AND id < ?
WHERE encrypted AND key_id IS NULL AND id <= ?
""".trimIndent()
).use { stmt ->
stmt.fetchSize = BATCH_SIZE

Loading…
Cancel
Save