/* o item in cache has expired */
if( cached->ttl < timenow )
return 1;
- /* o same trust, but different in data - insert it */
- if( newd->trust == cached->trust && !equal ) {
+ /* o same trust, but different in data - insert it */
+ if( newd->trust == cached->trust && !equal ) {
/* if this is type NS, do not 'stick' to owner that changes
* the NS RRset, but use the old TTL for the new data, and
* update to fetch the latest data. ttl is not expired, because
if(newd->rr_ttl[i] > newd->ttl)
newd->rr_ttl[i] = newd->ttl;
}
- return 1;
+ return 1;
}
- return 0;
+ return 0;
}
/** Update RRSet special key ID */
/* detect freebsd jail with no ipv6 permission */
if(addr->ai_family==AF_INET6 && errno==EINVAL)
*noproto = 1;
- else { log_err("can't bind socket: %s", strerror(errno));
- log_addr(0, "failed address",
+ else {
+ log_err("can't bind socket: %s", strerror(errno));
+ log_addr(0, "failed address",
(struct sockaddr_storage*)addr->ai_addr,
- addr->ai_addrlen); }
+ addr->ai_addrlen);
+ }
#else
log_err("can't bind socket: %s",
wsa_strerror(WSAGetLastError()));