/* Make our DNS query. */
answer = fixedans;
- if (CtdlThreadCheckStop())
+ if (server_shutting_down)
{
if (txtbuf != NULL) {
snprintf(txtbuf, txtbufsize, "System shutting down");
return(1);
}
}
- if (CtdlThreadCheckStop())
+ if (server_shutting_down)
{
if (txtbuf != NULL)
snprintf(txtbuf, txtbufsize, "System shutting down");
* nameserver we're using.
*/
len = res_query(domain, C_IN, T_TXT, answer, PACKETSZ);
- if (CtdlThreadCheckStop())
+ if (server_shutting_down)
{
if (txtbuf != NULL) {
snprintf(txtbuf, txtbufsize, "System shutting down");
int num_rbl;
char rbl_domains[SIZ];
char txt_answer[1024];
- int ip_version = 4;
strcpy(message_to_spammer, "ok");
if ((strchr(CC->cs_addr, '.')) && (!strchr(CC->cs_addr, ':'))) {
int a1, a2, a3, a4;
- ip_version = 4;
sscanf(CC->cs_addr, "%d.%d.%d.%d", &a1, &a2, &a3, &a4);
snprintf(tbuf, sizeof tbuf, "%d.%d.%d.%d.", a4, a3, a2, a1);
char workbuf[sizeof tbuf];
char *ptr;
- ip_version = 6;
-
/* tedious code to expand and reverse an IPv6 address */
safestrncpy(tbuf, CC->cs_addr, sizeof tbuf);
num_colons = haschar(tbuf, ':');