From: dtucker Date: Tue, 4 May 2021 22:53:52 +0000 (+0000) Subject: Don't pass NULL as a string in debugging as it does not work on some X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a23cdccb2311a730465511e64741f555856be908;p=openbsd Don't pass NULL as a string in debugging as it does not work on some platforms in -portable. ok djm@ --- diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index ec60a62f5ca..2c17cfcba83 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/clientloop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.c,v 1.361 2021/05/03 00:16:45 djm Exp $ */ +/* $OpenBSD: clientloop.c,v 1.362 2021/05/04 22:53:52 dtucker Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -2142,7 +2142,7 @@ client_global_hostkeys_private_confirm(struct ssh *ssh, int type, sshkey_type_plain(ctx->keys[i]->type) == KEY_RSA; debug3_f("verify %s key %zu using %s sigalg", sshkey_type(ctx->keys[i]), i, - use_kexsigtype ? ssh->kex->hostkey_alg : NULL); + use_kexsigtype ? ssh->kex->hostkey_alg : "default"); if ((r = sshkey_verify(ctx->keys[i], sig, siglen, sshbuf_ptr(signdata), sshbuf_len(signdata), use_kexsigtype ? ssh->kex->hostkey_alg : NULL, 0,