From 322b4567902a2abe64ebba2c233907579b47704c Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 28 Apr 2026 16:27:50 +0200 Subject: [PATCH] dh-gex: Add missing goto error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally reported by Saransh Rana. Signed-off-by: Jakub Jelen Reviewed-by: Pavol Žáčik Merge-Request: --- src/dh-gex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dh-gex.c b/src/dh-gex.c index c6379ef2..939424e7 100644 --- a/src/dh-gex.c +++ b/src/dh-gex.c @@ -162,6 +162,7 @@ SSH_PACKET_CALLBACK(ssh_packet_client_dhgex_group) if (bignum_cmp(modulus, one) <= 0) { /* p must be positive and preferably bigger than one */ ssh_set_error(session, SSH_FATAL, "Invalid dh group parameter p"); + goto error; } if (!bignum_is_bit_set(modulus, 0)) { /* p must be a prime and therefore not divisible by 2 */