[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] pki_gcrypt: Initialize 'type_c' in 'pki_do_sign_sessionid'
[Thread Prev] | [Thread Next]
- Subject: [PATCH] pki_gcrypt: Initialize 'type_c' in 'pki_do_sign_sessionid'
- From: "Artyom V. Poptsov" <poptsov.artyom@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 29 Sep 2014 07:18:21 +0400
- To: libssh@xxxxxxxxxx
Add missing initialization of 'type_c' field of a SSH signature in 'pki_do_sign_sessionid' procedure. If libssh is compiled with GCrypt, 'dh_handshake_server' fails with "Could not sign the session id" error. The change fixes that. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@xxxxxxxxx> --- src/pki_gcrypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c index fff5237..2811acc 100644 --- a/src/pki_gcrypt.c +++ b/src/pki_gcrypt.c @@ -1657,6 +1657,7 @@ ssh_signature pki_do_sign_sessionid(const ssh_key key, return NULL; } sig->type = key->type; + sig->type_c = key->type_c; switch(key->type) { case SSH_KEYTYPE_DSS: -- 1.8.5.5
Archive administrator: postmaster@lists.cynapses.org