cache and neg cache structures.
- Fix for memory leak when edns subnet config options are read when
compiled without edns subnet support.
+ - Fix auth zone support for NSEC3 records without salt.
10 January 2020: Wouter
- Fix the relationship between serve-expired and prefetch options,
/* hashfunc(name, salt) */
memmove(p, nm, nmlen);
query_dname_tolower(p);
- memmove(p+nmlen, salt, saltlen);
+ if(salt && saltlen > 0)
+ memmove(p+nmlen, salt, saltlen);
(void)secalgo_nsec3_hash(algo, p, nmlen+saltlen, (unsigned char*)buf);
for(i=0; i<iter; i++) {
/* hashfunc(hash, salt) */
memmove(p, buf, hlen);
- memmove(p+hlen, salt, saltlen);
+ if(salt && saltlen > 0)
+ memmove(p+hlen, salt, saltlen);
(void)secalgo_nsec3_hash(algo, p, hlen+saltlen,
(unsigned char*)buf);
}