aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-02-10 13:12:33 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-02-10 13:12:33 +0000
commit9f01808158a8629b8d1c2b82775f826faf20cc5b (patch)
treed54beed152f1a5312d93b5098f382be8c7be7024
parent443a09e7bb6fcd6e01d9d0df0dfb3e15fa004410 (diff)
downloadsmtpd-starttls-proxy-9f01808158a8629b8d1c2b82775f826faf20cc5b.tar.gz
I think I got it this time...
-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 c8ed263..bdb9650 100644
--- a/src/qmail-remote/smtproutes.c
+++ b/src/qmail-remote/smtproutes.c
@@ -235,7 +235,7 @@ int smtproutes_init (smtproutes *routes)
int smtproutes_match (smtproutes const *routes, char const *s, stralloc *sa, size_t *pos, uint16_t *port)
{
cdb_data data ;
- int r = cdb_find(&routes->map, &data, s, strlen(s)) ;
+ int r = cdb_find(&routes->map, &data, s, strlen(s)+1) ;
if (r == -1) qmailr_temp("Invalid run/qmail-remote/smtproutes.cdb") ;
if (!r) return 0 ;
if (data.len < 3) return 0 ;