diff options
Diffstat (limited to 'contrib/unbound/sldns/wire2str.c')
-rw-r--r-- | contrib/unbound/sldns/wire2str.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/unbound/sldns/wire2str.c b/contrib/unbound/sldns/wire2str.c index cec3bc7..5cbd78e 100644 --- a/contrib/unbound/sldns/wire2str.c +++ b/contrib/unbound/sldns/wire2str.c @@ -697,6 +697,9 @@ int sldns_wire2str_rdata_scan(uint8_t** d, size_t* dlen, char** s, } w += n; } + if(*dlen != 0) { + goto failed; + } return w; } |