diff options
-rw-r--r-- | src/charon/plugins/sql/pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charon/plugins/sql/pool.c b/src/charon/plugins/sql/pool.c index 136c7e16f..709c18c12 100644 --- a/src/charon/plugins/sql/pool.c +++ b/src/charon/plugins/sql/pool.c @@ -308,7 +308,7 @@ static void purge(char *name) { purged = db->execute(db, NULL, "DELETE FROM leases WHERE pool = ? " - "AND released NOTNULL AND released < ?", + "AND released IS NOT NULL AND released < ?", DB_UINT, id, DB_UINT, time(NULL) - timeout); } query->destroy(query); |