mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
pki: Fix ssh_key_dup() with gcrypt.
This commit is contained in:
@@ -811,11 +811,11 @@ ssh_key pki_key_dup(const ssh_key key, int demote)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
tmp = gcry_sexp_nth_data(sexp, 1, &size);
|
tmp = gcry_sexp_nth_data(sexp, 1, &size);
|
||||||
y = ssh_string_new(size);
|
x = ssh_string_new(size);
|
||||||
if (y == NULL) {
|
if (x == NULL) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
ssh_string_fill(y, (char *)tmp, size);
|
ssh_string_fill(x, (char *)tmp, size);
|
||||||
gcry_sexp_release(sexp);
|
gcry_sexp_release(sexp);
|
||||||
|
|
||||||
err = gcry_sexp_build(&new->dsa, NULL,
|
err = gcry_sexp_build(&new->dsa, NULL,
|
||||||
|
Reference in New Issue
Block a user