mirror of https://github.com/getdnsapi/getdns.git
Fix #536 Broken trust anchor files are silently ignored
This commit is contained in:
parent
d98d307e64
commit
6395fe43cc
|
@ -1,3 +1,7 @@
|
|||
* 2023-??-??: Version 1.7.4
|
||||
* Issue #536: Broken trust anchor files are silently ignored
|
||||
Thanks Stéphane Bortzmeyer
|
||||
|
||||
* 2022-12-22: Version 1.7.3
|
||||
* PR #532: Increase CMake required version 3.5 -> 3.20, because we
|
||||
need cmake_path for Absolute paths in pkg-config (See Issue #517)
|
||||
|
|
|
@ -529,8 +529,10 @@ _getdns_fp2rr_list(struct mem_funcs *mf,
|
|||
else while (r == GETDNS_RETURN_GOOD && !feof(in)) {
|
||||
len = GLDNS_RR_BUF_SIZE;
|
||||
dname_len = 0;
|
||||
if (gldns_fp2wire_rr_buf(in, rr, &len, &dname_len, &pst))
|
||||
if (gldns_fp2wire_rr_buf(in, rr, &len, &dname_len, &pst)) {
|
||||
r = GETDNS_RETURN_GENERIC_ERROR;
|
||||
break;
|
||||
}
|
||||
if (dname_len && dname_len < sizeof(pst.prev_rr)) {
|
||||
memcpy(pst.prev_rr, rr, dname_len);
|
||||
pst.prev_rr_len = dname_len;
|
||||
|
|
Loading…
Reference in New Issue