upstream: Don't snprintf a NULL since not all platforms support it.

OpenBSD-Commit-ID: 6e0c268e40047e96fab6bc56dc340580b537183b
This commit is contained in:
dtucker@openbsd.org authored and Darren Tucker committed 2025-07-25 22:09:27 +10:00
1 parent eedab8db12
commit ed1e370d84
1 file changed
+2 -2
+2 -2
View File
@@ -1,4 +1,4 @@
/* $OpenBSD: ssh-pkcs11-client.c,v 1.22 2025/07/24 23:27:04 djm Exp $ */
/* $OpenBSD: ssh-pkcs11-client.c,v 1.23 2025/07/25 11:50:45 dtucker Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
* Copyright (c) 2014 Pedro Martelletto. All rights reserved.
@@ -450,7 +450,7 @@ pkcs11_del_provider(char *name)
* ssh-agent deletes keys before calling this, so the helper entry
* should be gone before we get here.
*/
debug3_f("delete %s", name);
debug3_f("delete %s", name ? name : "(null)");
if ((helper = helper_by_provider(name)) != NULL)
helper_terminate(helper);
return 0;