diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-02-10 12:52:07 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-02-10 12:52:07 +0000 |
| commit | 6b268d22ee2e4eda7a098acb9d37eca5451ea529 (patch) | |
| tree | f5171b1a8bb76d64a8a7a1754998072415d837e2 /src/qmail-remote/qmail-remote.c | |
| parent | 20ffab64abed12f46888ef4a7cffa153745c592f (diff) | |
| download | smtpd-starttls-proxy-6b268d22ee2e4eda7a098acb9d37eca5451ea529.tar.gz | |
bugfix smtproutes_match invocation
Diffstat (limited to 'src/qmail-remote/qmail-remote.c')
| -rw-r--r-- | src/qmail-remote/qmail-remote.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) ; } |
