OpenSSL: under resumption open ticket DB writable, for record delete
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 29 Mar 2020 14:00:07 +0000 (15:00 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 29 Mar 2020 14:00:07 +0000 (15:00 +0100)
src/src/tls-openssl.c

index af5d952f74f3d3e83e74e23dd8eaa6b2cd6e4ded..146ed695dcfeda0a7c42c14d8efa7abde90d01df 100644 (file)
@@ -2994,7 +2994,7 @@ if (tlsp->host_resumable)
 
   tlsp->resumption |= RESUME_CLIENT_REQUESTED;
   DEBUG(D_tls) debug_printf("checking for resumable session for %s\n", key);
-  if ((dbm_file = dbfn_open(US"tls", O_RDONLY, &dbblock, FALSE, FALSE)))
+  if ((dbm_file = dbfn_open(US"tls", O_RDWR, &dbblock, FALSE, FALSE)))
     {
     /* key for the db is the IP */
     if ((dt = dbfn_read_with_length(dbm_file, key, &len)))