aboutsummaryrefslogtreecommitdiff
path: root/src/pki_gcrypt.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-21 12:59:55 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-21 12:59:55 +0200
commit42cea1f2f1f1137ffa00ac29588a75ff9cff363d (patch)
tree70ed6852bd8df0534dc2b1cd643d6e0af5e37a7e /src/pki_gcrypt.c
parentc8d06b6b1c1e1e2f51bc11effb1fcaf24c954acc (diff)
downloadlibssh-42cea1f2f1f1137ffa00ac29588a75ff9cff363d.tar.gz
libssh-42cea1f2f1f1137ffa00ac29588a75ff9cff363d.tar.xz
libssh-42cea1f2f1f1137ffa00ac29588a75ff9cff363d.zip
pki: Fix ssh_key_dup() with gcrypt.
Diffstat (limited to 'src/pki_gcrypt.c')
-rw-r--r--src/pki_gcrypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c
index 65c9107f..c7402eeb 100644
--- a/src/pki_gcrypt.c
+++ b/src/pki_gcrypt.c
@@ -811,11 +811,11 @@ ssh_key pki_key_dup(const ssh_key key, int demote)
goto fail;
}
tmp = gcry_sexp_nth_data(sexp, 1, &size);
- y = ssh_string_new(size);
- if (y == NULL) {
+ x = ssh_string_new(size);
+ if (x == NULL) {
goto fail;
}
- ssh_string_fill(y, (char *)tmp, size);
+ ssh_string_fill(x, (char *)tmp, size);
gcry_sexp_release(sexp);
err = gcry_sexp_build(&new->dsa, NULL,