}
key = isc_mem_strdup(sym_mctx, key);
- if (key == NULL)
- return;
symvalue.as_pointer = NULL;
result = isc_symtab_define(symtab, key, value, symvalue,
if (trust_anchor == NULL) {
trust_anchor = isc_mem_strdup(mctx, ".");
- if (trust_anchor == NULL) {
- fatal("out of memory");
- }
}
if (trust_anchor != NULL) {
dlv_validation = state;
if (value != NULL) {
dlv_anchor = isc_mem_strdup(mctx, value);
- if (dlv_anchor == NULL)
- fatal("out of memory");
}
break;
case 'n': /* dnssec */
root_validation = state;
if (value != NULL) {
trust_anchor = isc_mem_strdup(mctx, value);
- if (trust_anchor == NULL)
- fatal("out of memory");
}
break;
case 'r': /* rrcomments */
switch (opt) {
case 'a':
anchorfile = isc_mem_strdup(mctx, value);
- if (anchorfile == NULL)
- fatal("out of memory");
return (value_from_next);
case 'b':
hash = strchr(value, '#');
isc_mem_free(mctx, curqname);
}
curqname = isc_mem_strdup(mctx, value);
- if (curqname == NULL)
- fatal("out of memory");
return (value_from_next);
case 't':
*open_type_class = false;
warn("extra query name");
}
curqname = isc_mem_strdup(mctx, textname);
- if (curqname == NULL)
- fatal("out of memory");
if (typeset)
warn("extra query type");
qtype = dns_rdatatype_ptr;
if (curqname == NULL) {
curqname = isc_mem_strdup(mctx, argv[0]);
- if (curqname == NULL)
- fatal("out of memory");
}
}
}
if (curqname == NULL) {
qname = isc_mem_strdup(mctx, ".");
- if (qname == NULL)
- fatal("out of memory");
if (!typeset)
qtype = dns_rdatatype_ns;
* simplify cleanup later
*/
dir = isc_mem_strdup(mctx, isc_commandline_argument);
- if (dir == NULL) {
- fatal("Failed to allocate memory for "
- "directory");
- }
break;
case 'r':
removefile = true;
*/
directory = isc_mem_strdup(mctx,
isc_commandline_argument);
- if (directory == NULL) {
- fatal("Failed to allocate memory for "
- "directory");
- }
break;
case 'L':
ttl = strtottl(isc_commandline_argument);
obj = cfg_listelt_value(element);
str = cfg_obj_asstring(obj);
newstr = isc_mem_strdup(mctx, str);
- if (newstr == NULL)
- goto cleanup;
key = isc_mem_get(mctx, sizeof(*key));
key->keyname = newstr;
key->algorithm = DST_ALG_UNKNOWN;
if (value != NULL) {
copy = isc_mem_strdup(server->mctx, value);
- if (copy == NULL)
- return (ISC_R_NOMEMORY);
} else {
copy = NULL;
}
CHECK(dns_name_dup(keyname, mctx, server->session_keyname));
server->session_keyfile = isc_mem_strdup(mctx, keyfile);
- if (server->session_keyfile == NULL)
- goto cleanup;
server->session_keyalg = algtype;
server->session_keybits = bits;
"'lock-file' has no effect "
"because the server was run with -X");
server->lockfile = isc_mem_strdup(server->mctx,
- named_g_defaultlockfile);
+ named_g_defaultlockfile);
} else {
filename = cfg_obj_asstring(obj);
server->lockfile = isc_mem_strdup(server->mctx,
if (result == ISC_R_SUCCESS) {
s = cfg_obj_asstring(obj);
tctx->gssapi_keytab = isc_mem_strdup(mctx, s);
- if (tctx->gssapi_keytab == NULL) {
- result = ISC_R_NOMEMORY;
- goto failure;
- }
}
*tctxp = tctx;
cd->mctx = mctx;
cd->dl_path = isc_mem_strdup(cd->mctx, argv[1]);
- if (cd->dl_path == NULL) {
- result = ISC_R_NOMEMORY;
- goto failed;
- }
cd->dlzname = isc_mem_strdup(cd->mctx, dlzname);
- if (cd->dlzname == NULL) {
- result = ISC_R_NOMEMORY;
- goto failed;
- }
/* Initialize the lock */
isc_mutex_init(&cd->lock);
cd->mctx = mctx;
cd->dl_path = isc_mem_strdup(cd->mctx, argv[1]);
- if (cd->dl_path == NULL) {
- result = ISC_R_NOMEMORY;
- goto failed;
- }
cd->dlzname = isc_mem_strdup(cd->mctx, dlzname);
- if (cd->dlzname == NULL) {
- result = ISC_R_NOMEMORY;
- goto failed;
- }
triedload = true;
return (STATUS_SYNTAX);
}
realm = isc_mem_strdup(gmctx, buf);
- if (realm == NULL)
- fatal("out of memory");
return (STATUS_MORE);
#else
UNUSED(cmdline);
}
s = isc_mem_strdup(mctx, parameters);
- if (s == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup;
- }
result = isc_commandline_strtoargv(mctx, s, &argc, &argv, 0);
if (result != ISC_R_SUCCESS) {
isc_mem_attach(mctx, &inst->mctx);
inst->db_name = isc_mem_strdup(mctx, db_name);
- if (inst->db_name == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup;
- }
inst->zone1_name = dns_fixedname_initname(&inst->zone1_fn);
inst->zone2_name = dns_fixedname_initname(&inst->zone2_fn);
int i;
tmpString = isc_mem_strdup(named_g_mctx, in);
- if (tmpString == NULL)
- return (ISC_R_NOMEMORY);
/*
* don't forget is_safe guarantees '.' will NOT be the
/* get and store our base directory */
cd->basedir = isc_mem_strdup(named_g_mctx, argv[1]);
- if (cd->basedir == NULL)
- goto no_mem;
cd->basedirsize = strlen(cd->basedir);
/* get and store our data sub-dir */
cd->datadir = isc_mem_strdup(named_g_mctx, argv[2]);
- if (cd->datadir == NULL)
- goto no_mem;
cd->datadirsize = strlen(cd->datadir);
/* get and store our zone xfr sub-dir */
cd->xfrdir = isc_mem_strdup(named_g_mctx, argv[3]);
- if (cd->xfrdir == NULL)
- goto no_mem;
cd->xfrdirsize = strlen(cd->xfrdir);
/* get and store our directory split count */
/* set fields */
if (zone != NULL) {
dbi->zone = isc_mem_strdup(named_g_mctx, zone);
- if (dbi->zone == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup;
- }
} else {
dbi->zone = NULL;
}
if (record != NULL) {
dbi->record = isc_mem_strdup(named_g_mctx, record);
- if (dbi->record == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup;
- }
} else {
dbi->record = NULL;
}
if (client != NULL) {
dbi->client = isc_mem_strdup(named_g_mctx, client);
- if (dbi->client == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup;
- }
} else {
dbi->client = NULL;
}
ldap_inst->protocol = protocol;
ldap_inst->method = method;
ldap_inst->hosts = isc_mem_strdup(named_g_mctx, argv[6]);
- if (ldap_inst->hosts == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup;
- }
ldap_inst->user = isc_mem_strdup(named_g_mctx, argv[4]);
- if (ldap_inst->user == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup;
- }
ldap_inst->cred = isc_mem_strdup(named_g_mctx, argv[5]);
- if (ldap_inst->cred == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup;
- }
/* allocate memory for database connection list */
ldap_inst->db = isc_mem_get(named_g_mctx, sizeof(db_list_t));
memset(cd, 0, sizeof(config_data_t));
cd->myzone = isc_mem_strdup(named_g_mctx, argv[1]);
- if (cd->myzone == NULL) {
- isc_mem_put(named_g_mctx, cd, sizeof(config_data_t));
- return (ISC_R_NOMEMORY);
- }
cd->myname = isc_mem_strdup(named_g_mctx, argv[2]);
- if (cd->myname == NULL) {
- isc_mem_put(named_g_mctx, cd, sizeof(config_data_t));
- isc_mem_free(named_g_mctx, cd->myzone);
- return (ISC_R_NOMEMORY);
- }
cd->myip = isc_mem_strdup(named_g_mctx, argv[3]);
- if (cd->myip == NULL) {
- isc_mem_put(named_g_mctx, cd, sizeof(config_data_t));
- isc_mem_free(named_g_mctx, cd->myname);
- isc_mem_free(named_g_mctx, cd->myzone);
- return (ISC_R_NOMEMORY);
- }
isc_mem_attach(named_g_mctx, &cd->mctx);
ISC_LIST_APPEND(*tql, tseg, link);
tseg->sql = isc_mem_strdup(mctx, sql);
- if (tseg->sql == NULL) {
- /* no memory, clean everything up. */
- result = ISC_R_NOMEMORY;
- goto cleanup;
- }
/* tseg->sql points directly to a string. */
tseg->direct = true;
tseg->strlen = strlen(tseg->sql);
isc_symvalue_t symvalue;
key = isc_mem_strdup(mctx, name);
- if (key == NULL)
- return (ISC_R_NOMEMORY);
symvalue.as_cpointer = obj;
result = isc_symtab_define(symtab, key, value, symvalue,
isc_symexists_reject);
case CFG_ZONE_STUB:
case CFG_ZONE_STATICSTUB:
tmp = isc_mem_strdup(mctx, namebuf);
- if (tmp != NULL) {
+ {
isc_symvalue_t symvalue;
-
symvalue.as_cpointer = NULL;
tresult = isc_symtab_define(inview, tmp, 1,
- symvalue, isc_symexists_replace);
+ symvalue,
+ isc_symexists_replace);
if (tresult == ISC_R_NOMEMORY) {
isc_mem_free(mctx, tmp);
}
- if (result == ISC_R_SUCCESS &&
- tresult != ISC_R_SUCCESS)
+ if (result == ISC_R_SUCCESS && tresult != ISC_R_SUCCESS)
result = tresult;
- } else if (result != ISC_R_SUCCESS) {
- result = ISC_R_NOMEMORY;
}
break;
dns_name_format(name, namebuf, sizeof(namebuf));
keyname = isc_mem_strdup(mctx, namebuf);
- if (keyname == NULL)
- return (ISC_R_NOMEMORY);
symvalue.as_cpointer = key;
tresult = isc_symtab_define(symtab, keyname, 1, symvalue,
isc_symexists_reject);
cache->name = NULL;
if (cachename != NULL) {
cache->name = isc_mem_strdup(cmctx, cachename);
- if (cache->name == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup_mem;
- }
}
isc_mutex_init(&cache->lock);
goto cleanup_filelock;
cache->db_type = isc_mem_strdup(cmctx, db_type);
- if (cache->db_type == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup_stats;
- }
/*
* For databases of type "rbt" we pass hmctx to dns_db_create()
for (i = extra; i < cache->db_argc; i++) {
cache->db_argv[i] = isc_mem_strdup(cmctx,
db_argv[i - extra]);
- if (cache->db_argv[i] == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup_dbargv;
- }
}
}
REQUIRE(filename != NULL);
newname = isc_mem_strdup(cache->mctx, filename);
- if (newname == NULL)
- return (ISC_R_NOMEMORY);
LOCK(&cache->filelock);
if (cache->filename)
REQUIRE(r != NULL);
if (str != NULL) {
- p = (unsigned char *) isc_mem_strdup(env->mctx, str);
- if (p == NULL)
- return (ISC_R_NOMEMORY);
+ p = (unsigned char *)isc_mem_strdup(env->mctx, str);
}
if (r->base != NULL) {
imp->register_func = register_func;
imp->destroy_func = destroy_func;
imp->name = isc_mem_strdup(mctx, instname);
- if (imp->name == NULL)
- CHECK(ISC_R_NOMEMORY);
imp->inst = NULL;
INIT_LINK(imp, link);
imp->register_func = register_func;
imp->destroy_func = destroy_func;
imp->name = isc_mem_strdup(mctx, instname);
- if (imp->name == NULL)
- CHECK(ISC_R_NOMEMORY);
imp->inst = NULL;
INIT_LINK(imp, link);
struct in6_addr addr6;
tmp = isc_mem_strdup(lctx->mctx, DNS_AS_STR(*token));
- if (tmp == NULL)
- return (ISC_R_NOMEMORY);
/*
* Catch both "1.2.3.4" and "1.2.3.4."
*/
if (include_file != NULL)
isc_mem_free(mctx, include_file);
include_file = isc_mem_strdup(mctx,
- DNS_AS_STR(token));
- if (include_file == NULL) {
- result = ISC_R_NOMEMORY;
- goto log_and_cleanup;
- }
+ DNS_AS_STR(token));
GETTOKEN(lctx->lex, 0, &token, true);
if (token.type == isc_tokentype_eol ||
/* RANGE */
GETTOKEN(lctx->lex, 0, &token, false);
range = isc_mem_strdup(mctx,
- DNS_AS_STR(token));
- if (range == NULL) {
- result = ISC_R_NOMEMORY;
- goto log_and_cleanup;
- }
+ DNS_AS_STR(token));
/* LHS */
GETTOKEN(lctx->lex, 0, &token, false);
lhs = isc_mem_strdup(mctx, DNS_AS_STR(token));
- if (lhs == NULL) {
- result = ISC_R_NOMEMORY;
- goto log_and_cleanup;
- }
rdclass = 0;
explicit_ttl = false;
/* CLASS? */
/* TYPE */
gtype = isc_mem_strdup(mctx,
DNS_AS_STR(token));
- if (gtype == NULL) {
- result = ISC_R_NOMEMORY;
- goto log_and_cleanup;
- }
/* RHS */
GETTOKEN(lctx->lex, ISC_LEXOPT_QSTRING,
&token, false);
rhs = isc_mem_strdup(mctx, DNS_AS_STR(token));
- if (rhs == NULL) {
- result = ISC_R_NOMEMORY;
- goto log_and_cleanup;
- }
if (!lctx->ttl_known &&
!lctx->default_ttl_known) {
(*callbacks->error)(callbacks,
dns_dumpctx_t *dctx = NULL;
file = isc_mem_strdup(mctx, filename);
- if (file == NULL)
- return (ISC_R_NOMEMORY);
result = opentmp(mctx, format, filename, &tempname, &f);
if (result != ISC_R_SUCCESS)
"ENGINE_load_private_key",
ISC_R_NOTFOUND));
key->engine = isc_mem_strdup(key->mctx, engine);
- if (key->engine == NULL)
- DST_RET(ISC_R_NOMEMORY);
key->label = isc_mem_strdup(key->mctx, label);
- if (key->label == NULL)
- DST_RET(ISC_R_NOMEMORY);
rsa = EVP_PKEY_get1_RSA(pkey);
if (rsa == NULL)
DST_RET(dst__openssl_toresult(DST_R_OPENSSLFAILURE));
if (strchr(label, ':') == NULL)
DST_RET(DST_R_NOENGINE);
tmpengine = isc_mem_strdup(key->mctx, label);
- if (tmpengine == NULL)
- DST_RET(ISC_R_NOMEMORY);
colon = strchr(tmpengine, ':');
INSIST(colon != NULL);
*colon = '\0';
tmpengine = NULL;
} else {
key->engine = isc_mem_strdup(key->mctx, engine);
- if (key->engine == NULL)
- DST_RET(ISC_R_NOMEMORY);
}
key->label = isc_mem_strdup(key->mctx, label);
- if (key->label == NULL)
- DST_RET(ISC_R_NOMEMORY);
rsa = EVP_PKEY_get1_RSA(pkey);
if (rsa == NULL)
DST_RET(dst__openssl_toresult(DST_R_OPENSSLFAILURE));
if (engine != NULL) {
key->engine = isc_mem_strdup(key->mctx, engine);
- if (key->engine == NULL)
- DST_RET(ISC_R_NOMEMORY);
}
key->label = isc_mem_strdup(key->mctx, label);
- if (key->label == NULL)
- DST_RET(ISC_R_NOMEMORY);
pk11_return_session(pk11_ctx);
memset(pk11_ctx, 0, sizeof(*pk11_ctx));
if (engine != NULL) {
key->engine = isc_mem_strdup(key->mctx, engine);
- if (key->engine == NULL)
- DST_RET(ISC_R_NOMEMORY);
}
key->label = isc_mem_strdup(key->mctx, label);
- if (key->label == NULL)
- DST_RET(ISC_R_NOMEMORY);
if (key->key_alg == DST_ALG_ECDSA256)
key->key_size = DNS_KEY_ECDSA256SIZE * 4;
else
if (engine != NULL) {
key->engine = isc_mem_strdup(key->mctx, engine);
- if (key->engine == NULL)
- DST_RET(ISC_R_NOMEMORY);
}
key->label = isc_mem_strdup(key->mctx, label);
- if (key->label == NULL)
- DST_RET(ISC_R_NOMEMORY);
pk11_return_session(pk11_ctx);
memset(pk11_ctx, 0, sizeof(*pk11_ctx));
if (engine != NULL) {
key->engine = isc_mem_strdup(key->mctx, engine);
- if (key->engine == NULL)
- DST_RET(ISC_R_NOMEMORY);
}
key->label = isc_mem_strdup(key->mctx, label);
- if (key->label == NULL)
- DST_RET(ISC_R_NOMEMORY);
if (key->key_alg == DST_ALG_ED25519)
key->key_size = DNS_KEY_ED25519SIZE;
else
if (engine != NULL) {
key->engine = isc_mem_strdup(key->mctx, engine);
- if (key->engine == NULL)
- DST_RET(ISC_R_NOMEMORY);
}
key->label = isc_mem_strdup(key->mctx, label);
- if (key->label == NULL)
- DST_RET(ISC_R_NOMEMORY);
pk11_return_session(pk11_ctx);
isc_safe_memwipe(pk11_ctx, sizeof(*pk11_ctx));
if (engine != NULL) {
key->engine = isc_mem_strdup(key->mctx, engine);
- if (key->engine == NULL)
- DST_RET(ISC_R_NOMEMORY);
}
key->label = isc_mem_strdup(key->mctx, label);
- if (key->label == NULL)
- DST_RET(ISC_R_NOMEMORY);
attr = pk11_attribute_bytype(rsa, CKA_PUBLIC_EXPONENT);
INSIST(attr != NULL);
strlcat(buf, "/", sizeof(buf));
strlcat(buf, typebuf, sizeof(buf));
fctx->info = isc_mem_strdup(mctx, buf);
- if (fctx->info == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup_counter;
- }
FCTXTRACE("create");
dns_name_init(&fctx->name, NULL);
isc_buffer_putuint8(&b, 0);
sdb->zone = isc_mem_strdup(mctx, zonestr);
- if (sdb->zone == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup_origin;
- }
sdb->dbdata = NULL;
if (imp->methods->create != NULL) {
view->mctx = NULL;
isc_mem_attach(mctx, &view->mctx);
view->name = isc_mem_strdup(mctx, name);
- if (view->name == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup_view;
- }
result = isc_file_sanitize(NULL, view->name, "nta",
buffer, sizeof(buffer));
if (result != ISC_R_SUCCESS)
goto cleanup_name;
view->nta_file = isc_mem_strdup(mctx, buffer);
- if (view->nta_file == NULL) {
- result = ISC_R_NOMEMORY;
- goto cleanup_name;
- }
isc_mutex_init(&view->lock);
buffer, sizeof(buffer)));
view->new_zone_file = isc_mem_strdup(view->mctx, buffer);
- if (view->new_zone_file == NULL) {
- CHECK(ISC_R_NOMEMORY);
- }
#ifdef HAVE_LMDB
CHECK(nz_legacy(view->new_zone_dir, view->name, "nzd",
buffer, sizeof(buffer)));
view->new_zone_db = isc_mem_strdup(view->mctx, buffer);
- if (view->new_zone_db == NULL) {
- CHECK(ISC_R_NOMEMORY);
- }
status = mdb_env_create(&env);
if (status != MDB_SUCCESS) {
}
for (i = 0; i < dbargc; i++) {
argv[i] = isc_mem_strdup(zone->mctx, dbargv[i]);
- if (argv[i] == NULL)
- goto nomem;
}
/* Free the old list. */
if (value != NULL) {
copy = isc_mem_strdup(zone->mctx, value);
- if (copy == NULL)
- return (ISC_R_NOMEMORY);
} else {
copy = NULL;
}
inc = isc_mem_get(zone->mctx, sizeof(dns_include_t));
inc->name = isc_mem_strdup(zone->mctx, filename);
- if (inc->name == NULL) {
- isc_mem_put(zone->mctx, inc, sizeof(dns_include_t));
- return;
- }
ISC_LINK_INIT(inc, link);
result = isc_file_getmodtime(filename, &inc->filetime);
conf->searchnxt = 0;
conf->domainname = isc_mem_strdup(conf->mctx, word);
- if (conf->domainname == NULL)
- return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
}
INSIST(idx < sizeof(conf->search)/sizeof(conf->search[0]));
conf->search[idx] = isc_mem_strdup(conf->mctx, word);
- if (conf->search[idx] == NULL)
- return (ISC_R_NOMEMORY);
idx++;
conf->searchnxt++;
item = isc_mem_get(httpdmgr->mctx, sizeof(isc_httpdurl_t));
item->url = isc_mem_strdup(httpdmgr->mctx, url);
- if (item->url == NULL) {
- isc_mem_put(httpdmgr->mctx, item, sizeof(isc_httpdurl_t));
- return (ISC_R_NOMEMORY);
- }
item->action = func;
item->action_arg = arg;
source->last_was_eol = lex->last_was_eol;
source->input = input;
source->name = isc_mem_strdup(lex->mctx, name);
- if (source->name == NULL) {
- isc_mem_put(lex->mctx, source, sizeof(*source));
- return (ISC_R_NOMEMORY);
- }
source->pushback = NULL;
result = isc_buffer_allocate(lex->mctx, &source->pushback,
(unsigned int)lex->max_token);
if (source == NULL)
return (ISC_R_NOTFOUND);
newname = isc_mem_strdup(lex->mctx, name);
- if (newname == NULL)
- return (ISC_R_NOMEMORY);
isc_mem_free(lex->mctx, source->name);
source->name = newname;
return (ISC_R_SUCCESS);
channel = isc_mem_get(mctx, sizeof(*channel));
channel->name = isc_mem_strdup(mctx, name);
- if (channel->name == NULL) {
- isc_mem_put(mctx, channel, sizeof(*channel));
- return (ISC_R_NOMEMORY);
- }
channel->type = type;
channel->level = level;
* to scribble on it, so it needs to be definitely in
* writable memory.
*/
- FILE_NAME(channel) =
- isc_mem_strdup(mctx, destination->file.name);
+ FILE_NAME(channel) = isc_mem_strdup(mctx,
+ destination->file.name);
FILE_STREAM(channel) = NULL;
FILE_VERSIONS(channel) = destination->file.versions;
FILE_SUFFIX(channel) = destination->file.suffix;
if (lcfg->tag != NULL)
isc_mem_free(lcfg->lctx->mctx, lcfg->tag);
lcfg->tag = isc_mem_strdup(lcfg->lctx->mctx, tag);
- if (lcfg->tag == NULL)
- return (ISC_R_NOMEMORY);
} else {
if (lcfg->tag != NULL)
if (result != ISC_R_SUCCESS)
return (result);
dacl->name = isc_mem_strdup(dacl->mctx, aclname);
- if (dacl->name == NULL)
- return (ISC_R_NOMEMORY);
ISC_LIST_APPEND(ctx->named_acl_cache, dacl, nextincache);
dns_acl_attach(dacl, target);
return (ISC_R_SUCCESS);
if (serverid != NULL) {
sctx->server_id = isc_mem_strdup(sctx->mctx, serverid);
- if (sctx->server_id == NULL)
- return (ISC_R_NOMEMORY);
}
return (ISC_R_SUCCESS);
if ((cp = strchr(buf, '\n')) != NULL) /* zap NL if any */
*cp = '\0';
trans->domain = isc_mem_strdup(mctx, buf);
- if (trans->domain == NULL) {
- fprintf(stderr,
- "failed to allocate memory for domain: %s", cp);
- return (ISC_R_NOMEMORY);
- }
/* Start getting NS for the domain */
domainlen = strlen(buf);