4230. [contrib] dlz_wildcard_dynamic.c:dlz_create could return a

uninitalised result. [RT #40839]
This commit is contained in:
Mark Andrews 2015-09-30 15:33:16 +10:00
parent 24231afa05
commit 0dc485ffb6
2 changed files with 6 additions and 4 deletions

View file

@ -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]

View file

@ -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) {