From 9f01808158a8629b8d1c2b82775f826faf20cc5b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 10 Feb 2026 13:12:33 +0000 Subject: I think I got it this time... --- src/qmail-remote/smtproutes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; -- cgit v1.3.1