aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-02-08 15:27:04 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-02-08 15:27:04 +0000
commited02e1a94b532911e1d20364e1f396cefd5a0f7a (patch)
tree525614b1e117c8e2cf5b9008538d22c01d998369
parente3b227137b7cbe3399a96b986bf029174d9c7902 (diff)
downloadsmtpd-starttls-proxy-ed02e1a94b532911e1d20364e1f396cefd5a0f7a.tar.gz
bugfix!
-rw-r--r--src/qmail-remote/smtproutes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmail-remote/smtproutes.c b/src/qmail-remote/smtproutes.c
index 1791ba8..7fcfada 100644
--- a/src/qmail-remote/smtproutes.c
+++ b/src/qmail-remote/smtproutes.c
@@ -167,7 +167,7 @@ int smtproutes_init (smtproutes *routes)
static char const *cdbfile = SMTPD_STARTTLS_PROXY_QMAIL_HOME "/run/qmail-remote/smtproutes.cdb" ;
static char const *lckfile = SMTPD_STARTTLS_PROXY_QMAIL_HOME "/run/qmail-remote/smtproutes.lock" ;
static char const *txtfile = SMTPD_STARTTLS_PROXY_QMAIL_HOME "/control/smtproutes" ;
- static size_t const cdblen = sizeof(cdbfile) - 1 ;
+ static size_t const cdblen = sizeof(SMTPD_STARTTLS_PROXY_QMAIL_HOME "/run/qmail-remote/smtproutes.cdb") - 1 ;
int fdl = openc_create(lckfile) ;
if (fdl == -1) qmailr_tempusys("open ", "run/qmail-remote/smtproutes.lock") ;
if (fd_lock(fdl, 1, 0) == -1) qmailr_tempusys("lock ", "run/qmail-remote/smtproutes.lock") ;