From 6a29b0a26a977979e2fdc53fc3419447827fe61c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 11 Feb 1997 16:41:05 +0000 Subject: Get the ETRN command right. svn path=/trunk/; revision=865 --- etrn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etrn.c b/etrn.c index 5f54eebe..e7845819 100644 --- a/etrn.c +++ b/etrn.c @@ -45,7 +45,8 @@ static int etrn_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp) *countp = *newp = -1; /* make sure we don't enter the fetch loop */ /* ship the actual poll and get the response */ - gen_send(sockfp, "ETRN %s", ctl->server.names->id); + gethostbyname(buf, sizeof(buf)); + gen_send(sockfp, "ETRN %s", buf); if (ok = gen_recv(sockfp, buf, sizeof(buf))) return(ok); -- cgit v1.2.3