- ldapbackend.cc
- recursor_cache.cc
- recusor_cache.hh
- zoneparser-tng.cc
try {
d_qname.clear();
- d_pldap = NULL;
- d_authenticator = NULL;
+ d_pldap = nullptr;
+ d_authenticator = nullptr;
d_qlog = arg().mustDo("query-logging");
d_default_ttl = arg().asNum("default-ttl");
d_myname = "[LdapBackend]";
g_log << Logger::Error << d_myname << " Caught STL exception: " << e.what() << endl;
}
- if (d_pldap != NULL) {
+ if (d_pldap != nullptr) {
delete (d_pldap);
}
throw PDNSException("Unable to connect to ldap server");
throw std::system_error(ec, "File '" + fname + "': not a regular file");
}
FILE *fp = fdopen(fd, "r");
- if (!fp) {
+ if (fp == nullptr) {
int err = errno;
close(fd);
std::error_code ec (err, std::generic_category());