mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-20 16:57:45 +02:00
- Fix #802: workaround for function parameters that are "unused"
without log_assert. git-svn-id: file:///svn/unbound/trunk@3823 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
22 July 2016: Wouter
|
||||
- Fix #801: missing error condition handling in
|
||||
daemon_create_workers().
|
||||
- Fix #802: workaround for function parameters that are "unused"
|
||||
without log_assert.
|
||||
|
||||
20 July 2016: Wouter
|
||||
- Fix typo in unbound.conf.
|
||||
|
||||
@@ -1416,6 +1416,7 @@ serviced_perturb_qname(struct ub_randstate* rnd, uint8_t* qbuf, size_t len)
|
||||
long int random = 0;
|
||||
int bits = 0;
|
||||
log_assert(len >= 10 + 5 /* offset qname, root, qtype, qclass */);
|
||||
(void)len;
|
||||
lablen = *d++;
|
||||
while(lablen) {
|
||||
while(lablen--) {
|
||||
|
||||
@@ -1438,6 +1438,7 @@ cfg_set_bit(uint8_t* bitlist, size_t len, int id)
|
||||
{
|
||||
int pos = id/8;
|
||||
log_assert((size_t)pos < len);
|
||||
(void)len;
|
||||
bitlist[pos] |= 1<<(id%8);
|
||||
}
|
||||
|
||||
|
||||
@@ -870,6 +870,7 @@ comm_point_tcp_accept_callback(int fd, short event, void* arg)
|
||||
/* accept incoming connection. */
|
||||
c_hdl = c->tcp_free;
|
||||
log_assert(fd != -1);
|
||||
(void)fd;
|
||||
new_fd = comm_point_perform_accept(c, &c_hdl->repinfo.addr,
|
||||
&c_hdl->repinfo.addrlen);
|
||||
if(new_fd == -1)
|
||||
|
||||
Reference in New Issue
Block a user