mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- remove unused variable assignment from iterator scrub routine.
- check for null in delegation point during iterator refetch in forward zone. - neater pointer cast in libunbound context quit routine. git-svn-id: file:///svn/unbound/trunk@4902 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
635df9c806
commit
8dd6efe5ed
4 changed files with 10 additions and 4 deletions
|
|
@ -10,6 +10,10 @@
|
||||||
- Free memory leak in config strlist append.
|
- Free memory leak in config strlist append.
|
||||||
- make sure nsec3 comparison salt is initialized.
|
- make sure nsec3 comparison salt is initialized.
|
||||||
- unit test has clang analysis.
|
- unit test has clang analysis.
|
||||||
|
- remove unused variable assignment from iterator scrub routine.
|
||||||
|
- check for null in delegation point during iterator refetch
|
||||||
|
in forward zone.
|
||||||
|
- neater pointer cast in libunbound context quit routine.
|
||||||
|
|
||||||
11 September 2018: Wouter
|
11 September 2018: Wouter
|
||||||
- Fixed unused return value warnings in contrib/fastrpz.patch for
|
- Fixed unused return value warnings in contrib/fastrpz.patch for
|
||||||
|
|
|
||||||
|
|
@ -437,7 +437,9 @@ scrub_normalize(sldns_buffer* pkt, struct msg_parse* msg,
|
||||||
rrset->rrset_all_next =
|
rrset->rrset_all_next =
|
||||||
nx->rrset_all_next;
|
nx->rrset_all_next;
|
||||||
nx->rrset_all_next = rrset;
|
nx->rrset_all_next = rrset;
|
||||||
prev = nx;
|
/* prev = nx; unused, enable if there
|
||||||
|
* is other rrset removal code after
|
||||||
|
* this */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1125,7 +1125,7 @@ forward_request(struct module_qstate* qstate, struct iter_qstate* iq)
|
||||||
struct delegpt* dp;
|
struct delegpt* dp;
|
||||||
uint8_t* delname = iq->qchase.qname;
|
uint8_t* delname = iq->qchase.qname;
|
||||||
size_t delnamelen = iq->qchase.qname_len;
|
size_t delnamelen = iq->qchase.qname_len;
|
||||||
if(iq->refetch_glue) {
|
if(iq->refetch_glue && iq->dp) {
|
||||||
delname = iq->dp->name;
|
delname = iq->dp->name;
|
||||||
delnamelen = iq->dp->namelen;
|
delnamelen = iq->dp->namelen;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -392,12 +392,12 @@ struct ctx_query* context_deserialize_cancel(struct ub_ctx* ctx,
|
||||||
uint8_t*
|
uint8_t*
|
||||||
context_serialize_quit(uint32_t* len)
|
context_serialize_quit(uint32_t* len)
|
||||||
{
|
{
|
||||||
uint8_t* p = (uint8_t*)malloc(sizeof(uint32_t));
|
uint32_t* p = (uint32_t*)malloc(sizeof(uint32_t));
|
||||||
if(!p)
|
if(!p)
|
||||||
return NULL;
|
return NULL;
|
||||||
*len = sizeof(uint32_t);
|
*len = sizeof(uint32_t);
|
||||||
sldns_write_uint32(p, UB_LIBCMD_QUIT);
|
sldns_write_uint32(p, UB_LIBCMD_QUIT);
|
||||||
return p;
|
return (uint8_t*)p;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ub_ctx_cmd context_serial_getcmd(uint8_t* p, uint32_t len)
|
enum ub_ctx_cmd context_serial_getcmd(uint8_t* p, uint32_t len)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue