File logic bug in cache-marshalling code. Introduced a couple of commits back.

This commit is contained in:
Simon Kelley
2019-01-03 13:42:03 +00:00
parent cc921df9ce
commit 2c594732eb

View File

@@ -742,8 +742,7 @@ int cache_recv_insert(time_t now, int fd)
else if (flags & F_DS) else if (flags & F_DS)
{ {
if (!read_write(fd, (unsigned char *)&class, sizeof(class), 1) || if (!read_write(fd, (unsigned char *)&class, sizeof(class), 1) ||
(flags & F_NEG) || (!(flags & F_NEG) && !(addr.key.keydata = blockdata_read(fd, addr.key.keylen))))
!(addr.key.keydata = blockdata_read(fd, addr.key.keylen)))
return 0; return 0;
} }
#endif #endif