1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 10:23:12 +02:00
This commit is contained in:
Bram Matthys
2003-06-15 14:16:41 +00:00
parent 5b8ca94431
commit d927eef7dd
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -2224,4 +2224,5 @@ seen. gmtime warning still there
- Implemented +a/+q prefixes (#define PREFIX_AQ in config.h) read the comment above PREFIX_AQ
in include/config.h for more information.
- Fixed PRIVMSG bug with multiple targets.
- Yet another resolver fix
*** Unreal3.2-beta17 release *** (god save us)
+7 -1
View File
@@ -764,7 +764,7 @@ static int proc_answer(ResRQ *rptr, HEADER *hptr, char *buf, char *eob)
{
char *cp, **alias;
struct hent *hp;
int class, type, dlen, len, ans = 0, n;
int class, type, dlen, len, ans = 0, ansa = 0, n;
struct IN_ADDR dr, *adr;
cp = buf + sizeof(HEADER);
@@ -840,6 +840,11 @@ static int proc_answer(ResRQ *rptr, HEADER *hptr, char *buf, char *eob)
dlen, hostbuf));
return -2;
}
if (ansa >= MAXADDRS - 1)
{
cp += dlen;
break;
}
hp->h_length = dlen;
if (ans == 1)
hp->h_addrtype = (class == C_IN) ?
@@ -875,6 +880,7 @@ static int proc_answer(ResRQ *rptr, HEADER *hptr, char *buf, char *eob)
(void)strlcpy(hp->h_name, hostbuf, len+1);
}
ans++;
ansa++;
adr++;
cp += dlen;
break;