From 20b85c03e751b4876fa3c92040464e483172b746 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 19:03:11 +0200 Subject: manual format adjustment --- src/rcpthosts.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rcpthosts.c') diff --git a/src/rcpthosts.c b/src/rcpthosts.c index f69f4f9..7505229 100644 --- a/src/rcpthosts.c +++ b/src/rcpthosts.c @@ -43,7 +43,7 @@ int rcpthosts(char *buf, int len) if (flagrh != 1) return 1; j = byte_rchr(buf, len, '@'); - if (j >= len) return 1; /* presumably envnoathost is acceptable */ + if (j >= len) return 1; // presumably envnoathost is acceptable ++j; buf += j; @@ -63,7 +63,7 @@ int rcpthosts(char *buf, int len) if (errno == ENOENT) return 0; cdb_init(&cdb, fdmrh); - for (j = 0; j < len; ++j) + for (j = 0; j < len; ++j) { if (!j || (buf[j] == '.')) { r = cdb_find(&cdb, buf + j, len - j); if (r) { @@ -72,6 +72,7 @@ int rcpthosts(char *buf, int len) return r; } } + } cdb_free(&cdb); close(fdmrh); } -- cgit v1.2.3