diff options
Diffstat (limited to 'etrn.c')
-rw-r--r-- | etrn.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |