summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kex.c b/kex.c
index 39a6f98c4..12f3e41c0 100644
--- a/kex.c
+++ b/kex.c
@@ -286,11 +286,11 @@ kex_buf2prop(struct sshbuf *raw, int *first_kex_follows, char ***propp)
286 debug2("kex_parse_kexinit: %s", proposal[i]); 286 debug2("kex_parse_kexinit: %s", proposal[i]);
287 } 287 }
288 /* first kex follows / reserved */ 288 /* first kex follows / reserved */
289 if ((r = sshbuf_get_u8(b, &v)) != 0 || 289 if ((r = sshbuf_get_u8(b, &v)) != 0 || /* first_kex_follows */
290 (r = sshbuf_get_u32(b, &i)) != 0) 290 (r = sshbuf_get_u32(b, &i)) != 0) /* reserved */
291 goto out; 291 goto out;
292 if (first_kex_follows != NULL) 292 if (first_kex_follows != NULL)
293 *first_kex_follows = i; 293 *first_kex_follows = v;
294 debug2("kex_parse_kexinit: first_kex_follows %d ", v); 294 debug2("kex_parse_kexinit: first_kex_follows %d ", v);
295 debug2("kex_parse_kexinit: reserved %u ", i); 295 debug2("kex_parse_kexinit: reserved %u ", i);
296 r = 0; 296 r = 0;