mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
lint.
git-svn-id: file:///svn/unbound/trunk@819 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
61b42edaef
commit
6a5f5e652a
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ fill_res(struct ub_val_result* res, struct ub_packed_rrset_key* answer,
|
||||||
for(i=0; i<data->count; i++) {
|
for(i=0; i<data->count; i++) {
|
||||||
/* remove rdlength from rdata */
|
/* remove rdlength from rdata */
|
||||||
res->len[i] = (int)(data->rr_len[i] - 2);
|
res->len[i] = (int)(data->rr_len[i] - 2);
|
||||||
res->data[i] = memdup(data->rr_data[i]+2, res->len[i]);
|
res->data[i] = memdup(data->rr_data[i]+2, (size_t)res->len[i]);
|
||||||
if(!res->data[i])
|
if(!res->data[i])
|
||||||
return 0; /* out of memory */
|
return 0; /* out of memory */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue