From ca5736a000a43b00475c42fc516bc29e1ff71427 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 9 Feb 2018 16:04:44 +1000 Subject: [PATCH] fix expiry on wwwhashes --- src/www_files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/www_files.c b/src/www_files.c index cfad512..139a276 100644 --- a/src/www_files.c +++ b/src/www_files.c @@ -15,7 +15,7 @@ void www_expire_old_links() { sqlite3 *db; sqlite3_stmt *res; int rc; - char sql[] = "delete from wwwhash where expire <= ?"; + char sql[] = "delete from wwwhash where expiry <= ?"; char *ret; time_t now = time(NULL); @@ -44,7 +44,7 @@ int www_check_hash_expired(char *hash) { sqlite3_stmt *res; int rc; time_t now = time(NULL); - char sql[] = "select id from wwwhash where hash = ? and expire > ?"; + char sql[] = "select id from wwwhash where hash = ? and expiry > ?"; snprintf(buffer, PATH_MAX, "%s/www_file_hashes.sq3", conf.bbs_path); rc = sqlite3_open(buffer, &db); if (rc != SQLITE_OK) {