Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 51f4a57

Browse files
committed
kex: Avoid unused variable when built without server
Fixes: #267 Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Eshan Kelkar <eshankelkar@galorithm.com> (cherry picked from commit 71e1baeb5f9c78d3524ccda53aa9c7738adea3c3)
1 parent e816256 commit 51f4a57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/kex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ SSH_PACKET_CALLBACK(ssh_packet_kexinit)
351351
int server_kex = session->server;
352352
ssh_string str = NULL;
353353
char *strings[SSH_KEX_METHODS] = {0};
354-
char *rsa_sig_ext = NULL;
355354
int rc = SSH_ERROR;
356355
size_t len;
357356

@@ -577,6 +576,7 @@ SSH_PACKET_CALLBACK(ssh_packet_kexinit)
577576
*/
578577
if ((session->extensions & SSH_EXT_SIG_RSA_SHA256) &&
579578
(session->extensions & SSH_EXT_SIG_RSA_SHA512)) {
579+
char *rsa_sig_ext = NULL;
580580
session->extensions &= ~(SSH_EXT_SIG_RSA_SHA256 | SSH_EXT_SIG_RSA_SHA512);
581581
rsa_sig_ext = ssh_find_matching("rsa-sha2-512,rsa-sha2-256",
582582
hostkeys);

0 commit comments

Comments
 (0)