- Fix sldns int16_data parse.

git-svn-id: file:///svn/unbound/trunk@4143 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2017-05-02 12:15:06 +00:00
parent 4770bfbb5b
commit 7e8d548d24
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
2 May 2017: Wouter
- Added test for leak of stub information.
- Fix sldns wire2str printout of RR type CAA tags.
- Fix sldns int16_data parse.
1 May 2017: Wouter
- Fix #1259: "--disable-ecdsa" argument overwritten

View file

@ -2018,6 +2018,6 @@ int sldns_str2wire_int16_data_buf(const char* str, uint8_t* rd, size_t* len)
if(n < 0)
return LDNS_WIREPARSE_ERR_SYNTAX_B64;
sldns_write_uint16(rd, (uint16_t)n);
*len = (size_t)n;
*len = ((size_t)n)+2;
return LDNS_WIREPARSE_ERR_OK;
}