From: djm@openbsd.org Date: Mon, 18 Aug 2025 04:50:35 +0000 (+0000) Subject: upstream: cast X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;p=thirdparty%2Fopenssh-portable.git upstream: cast OpenBSD-Commit-ID: d69bd2328513c2dcd99f4f346b77e2bd90cf1964 --- diff --git a/packet.c b/packet.c index b899fcafb..34bf91d75 100644 --- a/packet.c +++ b/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.320 2025/08/18 03:43:01 djm Exp $ */ +/* $OpenBSD: packet.c,v 1.321 2025/08/18 04:50:35 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -2613,7 +2613,7 @@ ssh_packet_set_state(struct ssh *ssh, struct sshbuf *m) (r = sshbuf_get_u32(m, &qos_interactive)) != 0 || (r = sshbuf_get_u32(m, &qos_other)) != 0) return r; -#define DECODE_INT(v) ((v) > INT_MAX ? -1 : (v)) +#define DECODE_INT(v) ((v) > INT_MAX ? -1 : (int)(v)) state->interactive_mode = DECODE_INT(interactive); state->qos_interactive = DECODE_INT(qos_interactive); state->qos_other = DECODE_INT(qos_other);