summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2006-11-07 14:13:18 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2006-11-07 14:13:18 +0000
commita2042e783d5db744eeb94d4d6ac3bc86aef45511 (patch)
tree3650f6772079e7a5046b420ebc000430e7a1b414 /test/src
parent99ea1c866060c4ca655973128f06d41c8efe9a44 (diff)
Stop rewriting addresses as a consequence of CNAMEs, as Exim isn't
supposed to do that (it must have crept in accidentally).
Diffstat (limited to 'test/src')
-rw-r--r--test/src/fakens.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/test/src/fakens.c b/test/src/fakens.c
index 3ec432c49..9c561653d 100644
--- a/test/src/fakens.c
+++ b/test/src/fakens.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/test/src/fakens.c,v 1.2 2006/02/16 10:05:34 ph10 Exp $ */
+/* $Cambridge: exim/test/src/fakens.c,v 1.3 2006/11/07 14:13:19 ph10 Exp $ */
/*************************************************
* fakens - A Fake Nameserver Program *
@@ -415,18 +415,6 @@ while (fgets(CS buffer, sizeof(buffer), f) != NULL)
rdlptr[0] = ((pk - rdlptr - 2) >> 8) & 255;
rdlptr[1] = (pk -rdlptr - 2) & 255;
-
- /* If we have just yielded a CNAME, we must change the domain name to the
- new domain, and re-start the scan from the beginning. */
-
- if (found_cname)
- {
- domain = fcopystring("%s", p);
- domainlen = Ustrlen(domain);
- domain[domainlen - 1] = 0; /* Removed trailing dot */
- rrdomain[0] = 0; /* No previous domain */
- (void)fseek(f, 0, SEEK_SET); /* Start again at the beginning */
- }
}
*pkptr = pk;