summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-10-07 23:10:38 +0000
committerDamien Miller <djm@mindrot.org>2019-10-09 11:06:47 +1100
commite827aedf8818e75c0016b47ed8fc231427457c43 (patch)
treed0ebe505a12ca574f2b5a529db842425dcc6fa84 /monitor.c
parent8ca491d29fbe26e5909ce22b344c0a848dc28d55 (diff)
upstream: reversed test yielded incorrect debug message
OpenBSD-Commit-ID: 78bb512d04cfc238adb2c5b7504ac93eecf523b3
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 5076a74ff..00af44f98 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor.c,v 1.198 2019/06/28 13:35:04 deraadt Exp $ */ 1/* $OpenBSD: monitor.c,v 1.199 2019/10/07 23:10:38 djm Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * Copyright 2002 Markus Friedl <markus@openbsd.org> 4 * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -692,7 +692,7 @@ mm_answer_sign(struct ssh *ssh, int sock, struct sshbuf *m)
692 fatal("%s: no hostkey from index %d", __func__, keyid); 692 fatal("%s: no hostkey from index %d", __func__, keyid);
693 693
694 debug3("%s: %s signature %p(%zu)", __func__, 694 debug3("%s: %s signature %p(%zu)", __func__,
695 is_proof ? "KEX" : "hostkey proof", signature, siglen); 695 is_proof ? "hostkey proof" : "KEX", signature, siglen);
696 696
697 sshbuf_reset(m); 697 sshbuf_reset(m);
698 if ((r = sshbuf_put_string(m, signature, siglen)) != 0) 698 if ((r = sshbuf_put_string(m, signature, siglen)) != 0)