fixed dnsd answer

This commit is contained in:
Bjorn Andersson 2006-06-06 00:07:35 +00:00
parent 781545dd02
commit f26723ff2c

4
dnsd.c
View File

@ -215,10 +215,6 @@ dnsd_respond(int fd, short id, struct sockaddr_in from)
memcpy(p, outbuf, outbuflen); memcpy(p, outbuf, outbuflen);
p += outbuflen; p += outbuflen;
int f;
f = open("moo", O_WRONLY | O_CREAT,
len = p - buf; len = p - buf;
sendto(fd, buf, len, 0, (struct sockaddr*)&from, sizeof(from)); sendto(fd, buf, len, 0, (struct sockaddr*)&from, sizeof(from));