aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/sldns/wire2str.c
diff options
context:
space:
mode:
Diffstat (limited to 'external/unbound/sldns/wire2str.c')
-rw-r--r--external/unbound/sldns/wire2str.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/external/unbound/sldns/wire2str.c b/external/unbound/sldns/wire2str.c
index cec3bc7b0..5cbd78eed 100644
--- a/external/unbound/sldns/wire2str.c
+++ b/external/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;
}