From 6b268d22ee2e4eda7a098acb9d37eca5451ea529 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 10 Feb 2026 12:52:07 +0000 Subject: bugfix smtproutes_match invocation --- src/qmail-remote/qmail-remote.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/qmail-remote/qmail-remote.c') diff --git a/src/qmail-remote/qmail-remote.c b/src/qmail-remote/qmail-remote.c index e993493..49c13e1 100644 --- a/src/qmail-remote/qmail-remote.c +++ b/src/qmail-remote/qmail-remote.c @@ -176,8 +176,7 @@ int main (int argc, char const *const *argv) { size_t hostlen = strlen(host) ; for (size_t i = 0 ; i < hostlen ; i++) if (host[i] == '.') - if (smtproutes_match(&routes, argv[1], &storage, &hostpos, &port)) break ; - if (!hostpos) smtproutes_match(&routes, "", &storage, &hostpos, &port) ; + if (smtproutes_match(&routes, host + i + 1, &storage, &hostpos, &port)) break ; } smtproutes_free(&routes) ; } -- cgit v1.3.1