summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/readpass.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2020-11-08 23:19:03 +0000
committerdjm <djm@openbsd.org>2020-11-08 23:19:03 +0000
commit234d38419629f23e668b50db2a21761f6ddc0779 (patch)
tree9ce752e49deec61b2142c4708b6cd5ee83d6dd85 /usr.bin/ssh/readpass.c
parentwhen requesting a security key touch on stderr, inform the user once (diff)
downloadwireguard-openbsd-234d38419629f23e668b50db2a21761f6ddc0779.tar.xz
wireguard-openbsd-234d38419629f23e668b50db2a21761f6ddc0779.zip
unbreak; missing NULL check
Diffstat (limited to 'usr.bin/ssh/readpass.c')
-rw-r--r--usr.bin/ssh/readpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c
index 1e77d61113b..40440f45f24 100644
--- a/usr.bin/ssh/readpass.c
+++ b/usr.bin/ssh/readpass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readpass.c,v 1.66 2020/11/08 22:37:24 djm Exp $ */
+/* $OpenBSD: readpass.c,v 1.67 2020/11/08 23:19:03 djm Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -300,7 +300,7 @@ notify_complete(struct notifier_ctx *ctx, const char *fmt, ...)
char *msg = NULL;
va_list args;
- if (fmt != NULL && ctx->pid == -1) {
+ if (ctx != NULL && fmt != NULL && ctx->pid == -1) {
/*
* notify_start wrote to stderr, so send conclusion message
* there too