Fossil

Check-in [b9121b47]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make sure emailerShutdown() correctly closes the emailqueue database.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b9121b4797a15636ae5a95f5e17c4939b58ae26f78f166ec838ac6d2f9ce9c03
User & Date: drh 2018-06-25 13:32:58
Context
2018-06-25
13:47
Add information about the server error log to the security audit page. Provide the new /errorlog page for viewing the server logfile online. check-in: a9e74eb3 user: drh tags: trunk
13:32
Make sure emailerShutdown() correctly closes the emailqueue database. check-in: b9121b47 user: drh tags: trunk
2018-06-24
23:22
Include the HTTP_REFERER value in the error log file. Also, omit empty environment variables from the error log. check-in: 4c839973 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/email.c.

346
347
348
349
350
351
352
353
354
355
356
357
358
359
360

/*
** Shutdown an emailer.  Clear all information other than the error message.
*/
static void emailerShutdown(EmailSender *p){
  sqlite3_finalize(p->pStmt);
  p->pStmt = 0;
  sqlite3_free(p->db);
  p->db = 0;
  p->zDb = 0;
  p->zDir = 0;
  p->zCmd = 0;
  p->zDest = "off";
}








|







346
347
348
349
350
351
352
353
354
355
356
357
358
359
360

/*
** Shutdown an emailer.  Clear all information other than the error message.
*/
static void emailerShutdown(EmailSender *p){
  sqlite3_finalize(p->pStmt);
  p->pStmt = 0;
  sqlite3_close(p->db);
  p->db = 0;
  p->zDb = 0;
  p->zDir = 0;
  p->zCmd = 0;
  p->zDest = "off";
}