]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: cast master anongit/master
authordjm@openbsd.org <djm@openbsd.org>
Mon, 18 Aug 2025 04:50:35 +0000 (04:50 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 18 Aug 2025 04:51:02 +0000 (14:51 +1000)
OpenBSD-Commit-ID: d69bd2328513c2dcd99f4f346b77e2bd90cf1964

packet.c

index b899fcafb57d56b6db8ec14e320cd6aef7c75891..34bf91d75e52edadeec370bfc640d4891b8eb178 100644 (file)
--- 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 <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, 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;
            (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);
        state->interactive_mode = DECODE_INT(interactive);
        state->qos_interactive = DECODE_INT(qos_interactive);
        state->qos_other = DECODE_INT(qos_other);