[openssh-commits] [openssh] 02/04: upstream: Make debug call printf("%s", NULL) safe.
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Oct 22 19:20:06 AEDT 2024
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 87bd1cb3ccba5e91d2650eb7f753c898ee43858e
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Tue Oct 22 06:13:00 2024 +0000
upstream: Make debug call printf("%s", NULL) safe.
Prevents problems on platforms where this isn't safe (which it's not
required to be). ok djm@
OpenBSD-Commit-ID: 8fa4ce3ad90915c925b81b99a79ab920b0523387
---
monitor_wrap.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/monitor_wrap.c b/monitor_wrap.c
index d6e488a1..bd900b2f 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor_wrap.c,v 1.137 2024/10/14 01:57:50 djm Exp $ */
+/* $OpenBSD: monitor_wrap.c,v 1.138 2024/10/22 06:13:00 dtucker Exp $ */
/*
* Copyright 2002 Niels Provos <provos at citi.umich.edu>
* Copyright 2002 Markus Friedl <markus at openbsd.org>
@@ -273,7 +273,8 @@ mm_sshkey_sign(struct ssh *ssh, struct sshkey *key, u_char **sigp, size_t *lenp,
if ((r = sshbuf_get_string(m, sigp, lenp)) != 0)
fatal_fr(r, "parse");
sshbuf_free(m);
- debug3_f("%s signature len=%zu", hostkey_alg, *lenp);
+ debug3_f("%s signature len=%zu", hostkey_alg ? hostkey_alg : "(null)",
+ *lenp);
return (0);
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list