neozeed ircu2.9.32-linux-hacks.diff
This commit is contained in:
14
ircd/res.c
14
ircd/res.c
@@ -248,7 +248,7 @@ time_t timeout_query_list()
|
||||
{
|
||||
r2ptr = rptr->next;
|
||||
tout = rptr->sentat + rptr->timeout;
|
||||
if (now >= tout)
|
||||
if (now >= tout) {
|
||||
if (--rptr->retries <= 0)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
@@ -289,6 +289,7 @@ time_t timeout_query_list()
|
||||
rptr->cinfo.value.cptr));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
if (!next || tout < next)
|
||||
next = tout;
|
||||
}
|
||||
@@ -674,9 +675,10 @@ char *lp;
|
||||
static char buf[sizeof(HEADER) + MAXPACKET];
|
||||
Reg1 HEADER *hptr;
|
||||
Reg2 ResRQ *rptr = NULL;
|
||||
aCache *cp;
|
||||
aCache *cp = NULL;
|
||||
struct sockaddr_in sin;
|
||||
int rc, a, len = sizeof(sin), max;
|
||||
socklen_t len = sizeof(sin);
|
||||
int rc, a, max;
|
||||
|
||||
(void)alarm((unsigned)4);
|
||||
rc = recvfrom(resfd, buf, sizeof(buf), 0, (struct sockaddr *)&sin,
|
||||
@@ -964,7 +966,7 @@ aCache *cachep;
|
||||
if (addrcount >= MAXALIASES - 1)
|
||||
break;
|
||||
for (j = 0, t = cp->he.h_name; t; t = cp->he.h_aliases[j++])
|
||||
if (!mycmp(t, s))
|
||||
if (!strcasecmp(t, s))
|
||||
break;
|
||||
if (!t)
|
||||
{
|
||||
@@ -1048,7 +1050,7 @@ char *name;
|
||||
|
||||
for (; cp; cp = cp->hname_next)
|
||||
for (i = 0, s = cp->he.h_name; s; s = cp->he.h_aliases[i++])
|
||||
if (mycmp(s, name) == 0)
|
||||
if (strcasecmp(s, name) == 0)
|
||||
{
|
||||
cainfo.ca_na_hits++;
|
||||
update_list(NULL, cp);
|
||||
@@ -1066,7 +1068,7 @@ char *name;
|
||||
if (hashv == hash_name(cp->he.h_name))
|
||||
continue;
|
||||
for (i = 0, s = cp->he.h_aliases[i]; s && i < MAXALIASES; i++)
|
||||
if (!mycmp(name, s)) {
|
||||
if (!strcasecmp(name, s)) {
|
||||
cainfo.ca_na_hits++;
|
||||
update_list(NULL, cp);
|
||||
return cp;
|
||||
|
||||
Reference in New Issue
Block a user