summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2016-08-03 04:23:55 +0000
committerDarren Tucker <dtucker@zip.com.au>2016-08-03 15:39:28 +1000
commite600348a7afd6325cc5cd783cb424065cbc20434 (patch)
tree54935b01905370a260a1ded808e6605e20e04f7f /sshd.c
parentd7e7348e72f9b203189e3fffb75605afecba4fda (diff)
upstream commit
Fix bug introduced in rev 1.467 which causes "buffer_get_bignum_ret: incomplete message" errors when built with WITH_SSH1 and run such that no Protocol 1 ephemeral host key is generated (eg "Protocol 2", no SSH1 host key supplied). Reported by rainer.laatsch at t-online.de, ok deraadt@ Upstream-ID: aa6b132da5c325523aed7989cc5a320497c919dc
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index 799c7711f..9fc829a91 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.470 2016/05/24 04:43:45 dtucker Exp $ */ 1/* $OpenBSD: sshd.c,v 1.471 2016/08/03 04:23:55 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1071,7 +1071,7 @@ send_rexec_state(int fd, struct sshbuf *conf)
1071 fatal("%s: buffer error: %s", __func__, ssh_err(r)); 1071 fatal("%s: buffer error: %s", __func__, ssh_err(r));
1072 } else 1072 } else
1073#endif 1073#endif
1074 if ((r = sshbuf_put_u32(m, 1)) != 0) 1074 if ((r = sshbuf_put_u32(m, 0)) != 0)
1075 fatal("%s: buffer error: %s", __func__, ssh_err(r)); 1075 fatal("%s: buffer error: %s", __func__, ssh_err(r));
1076 1076
1077#if defined(WITH_OPENSSL) && !defined(OPENSSL_PRNG_ONLY) 1077#if defined(WITH_OPENSSL) && !defined(OPENSSL_PRNG_ONLY)