summaryrefslogtreecommitdiff
path: root/src/rcpthosts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcpthosts.c')
-rw-r--r--src/rcpthosts.c5
1 files changed, 3 insertions, 2 deletions
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);
}