/* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "istream.h"
#include "ostream.h"
#include "restrict-access.h"
#include "master-service.h"
#include <unistd.h>
struct dns_client {
int fd;
};
{
const char *name;
unsigned int i, ips_count;
int ret;
/* shouldn't happen, but fix it anyway.. */
ret = EAI_NONAME;
}
if (ret != 0) {
} else {
for (i = 0; i < ips_count; i++) {
}
}
} else {
}
return -1;
} else {
}
return -1;
return 0;
}
{
const char *line;
int ret = 0;
ret = -1;
break;
}
}
}
{
return client;
}
{
i_error("close() failed: %m");
dns_client = NULL;
}
{
if (dns_client != NULL) {
i_error("dns-client must be configured with client_limit=1");
return;
}
}
{
if (master_getopt(master_service) > 0)
return FATAL_DEFAULT;
if (dns_client != NULL)
return 0;
}