diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-05-08 05:13:14 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-05-27 10:09:18 +1000 |
commit | ecb2c02d994b3e21994f31a70ff911667c262f1f (patch) | |
tree | ab423f815688f41e6209c35a51ddba9d9eabcc0a /sshd.c | |
parent | 3ab6fccc3935e9b778ff52f9c8d40f215d58e01d (diff) |
upstream: fix compilation with DEBUG_KEXDH; bz#3160 ok dtucker@
OpenBSD-Commit-ID: 832e771948fb45f2270e8b8895aac36d176ba17a
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.552 2020/03/13 04:01:57 djm Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.553 2020/05/08 05:13:14 djm 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 |
@@ -2372,10 +2372,11 @@ do_ssh2_kex(struct ssh *ssh) | |||
2372 | 2372 | ||
2373 | #ifdef DEBUG_KEXDH | 2373 | #ifdef DEBUG_KEXDH |
2374 | /* send 1st encrypted/maced/compressed message */ | 2374 | /* send 1st encrypted/maced/compressed message */ |
2375 | packet_start(SSH2_MSG_IGNORE); | 2375 | if ((r = sshpkt_start(ssh, SSH2_MSG_IGNORE)) != 0 || |
2376 | packet_put_cstring("markus"); | 2376 | (r = sshpkt_put_cstring(ssh, "markus")) != 0 || |
2377 | packet_send(); | 2377 | (r = sshpkt_send(ssh)) != 0 || |
2378 | packet_write_wait(); | 2378 | (r = ssh_packet_write_wait(ssh)) != 0) |
2379 | fatal("%s: send test: %s", __func__, ssh_err(r)); | ||
2379 | #endif | 2380 | #endif |
2380 | debug("KEX done"); | 2381 | debug("KEX done"); |
2381 | } | 2382 | } |