Commit 0dc485ff authored by Mark Andrews's avatar Mark Andrews
Browse files

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

                        uninitalised result. [RT #40839]
parent 24231afa
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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment