mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
Only set key->engine if engine != NULL
This commit is contained in:
parent
d527ae11c9
commit
00a09e0d35
@ -527,7 +527,7 @@ openssleddsa_fromlabel(dst_key_t *key, const char *engine, const char *label,
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (key->engine != NULL) {
|
||||
if (engine != NULL) {
|
||||
key->engine = isc_mem_strdup(key->mctx, engine);
|
||||
}
|
||||
key->label = isc_mem_strdup(key->mctx, label);
|
||||
|
@ -1051,7 +1051,7 @@ opensslrsa_fromlabel(dst_key_t *key, const char *engine, const char *label,
|
||||
DST_RET(ISC_R_RANGE);
|
||||
}
|
||||
|
||||
if (key->engine != NULL) {
|
||||
if (engine != NULL) {
|
||||
key->engine = isc_mem_strdup(key->mctx, engine);
|
||||
}
|
||||
key->label = isc_mem_strdup(key->mctx, label);
|
||||
|
Loading…
x
Reference in New Issue
Block a user