From 7cf5b55729992e2fea280e5782664de97b130510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 31 May 2007 02:46:17 +0000 Subject: [PATCH] (hx509_crypto_select): copy AI to the right place. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20723 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hx509/crypto.c b/lib/hx509/crypto.c index 86cd702f8..0f2b6e155 100644 --- a/lib/hx509/crypto.c +++ b/lib/hx509/crypto.c @@ -2476,7 +2476,7 @@ hx509_crypto_select(const hx509_context context, continue; if (cipher->ai_func == NULL) continue; - ret = copy_AlgorithmIdentifier(&peer->val[i], cipher->ai_func()); + ret = copy_AlgorithmIdentifier(cipher->ai_func(), selected); if (ret) hx509_clear_error_string(context); return ret;