mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 01:42:07 -04:00
4230. [contrib] dlz_wildcard_dynamic.c:dlz_create could return a
uninitalised result. [RT #40839]
This commit is contained in:
parent
24231afa05
commit
0dc485ffb6
2 changed files with 6 additions and 4 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
4230. [contrib] dlz_wildcard_dynamic.c:dlz_create could return a
|
||||
uninitalised result. [RT #40839]
|
||||
|
||||
4229. [bug] A variable could be used uninitalised in
|
||||
dns_update_signaturesinc. [RT #40784]
|
||||
|
||||
|
|
|
|||
|
|
@ -434,12 +434,11 @@ dlz_create(const char *dlzname, unsigned int argc, char *argv[],
|
|||
DLZ_LIST_INIT(cd->rrs_list);
|
||||
|
||||
cd->zone_pattern = strdup(argv[1]);
|
||||
if (cd->zone_pattern == NULL)
|
||||
goto cleanup;
|
||||
|
||||
cd->axfr_pattern = strdup(argv[2]);
|
||||
if (cd->axfr_pattern == NULL)
|
||||
if (cd->zone_pattern == NULL || cd->axfr_pattern == NULL) {
|
||||
result = ISC_R_NOMEMORY;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
def_ttl = strtol(argv[3], &endp, 10);
|
||||
if (*endp != '\0' || def_ttl < 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue