mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 10:23:12 +02:00
blah
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user