mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix Hardcoded Constant, reported by X41 D-Sec.
This commit is contained in:
parent
c4c1f9e5ef
commit
4106308bd5
2 changed files with 3 additions and 1 deletions
|
|
@ -31,6 +31,7 @@
|
||||||
- Fix compile error in dnscrypt.
|
- Fix compile error in dnscrypt.
|
||||||
- Fix _vfixed not Used, removed from sbuffer code,
|
- Fix _vfixed not Used, removed from sbuffer code,
|
||||||
reported by X41 D-Sec.
|
reported by X41 D-Sec.
|
||||||
|
- Fix Hardcoded Constant, reported by X41 D-Sec.
|
||||||
|
|
||||||
2 December 2019: Wouter
|
2 December 2019: Wouter
|
||||||
- Merge pull request #122 from he32: In tcp_callback_writer(),
|
- Merge pull request #122 from he32: In tcp_callback_writer(),
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
#include "sldns/parseutil.h"
|
#include "sldns/parseutil.h"
|
||||||
#include "sldns/sbuffer.h"
|
#include "sldns/sbuffer.h"
|
||||||
#include "sldns/keyraw.h"
|
#include "sldns/keyraw.h"
|
||||||
|
#include "util/data/dname.h"
|
||||||
#ifdef HAVE_TIME_H
|
#ifdef HAVE_TIME_H
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -784,7 +785,7 @@ int sldns_wire2str_dname_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen,
|
||||||
/* spool labels onto the string, use compression if its there */
|
/* spool labels onto the string, use compression if its there */
|
||||||
uint8_t* pos = *d;
|
uint8_t* pos = *d;
|
||||||
unsigned i, counter=0;
|
unsigned i, counter=0;
|
||||||
unsigned maxcompr = 256; /* loop detection, max compr ptrs */
|
unsigned maxcompr = MAX_COMPRESS_PTRS; /* loop detection, max compr ptrs */
|
||||||
int in_buf = 1;
|
int in_buf = 1;
|
||||||
if(comprloop) {
|
if(comprloop) {
|
||||||
if(*comprloop != 0)
|
if(*comprloop != 0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue