summaryrefslogtreecommitdiffstats
path: root/readpass.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-11-08 23:19:03 +0000
committerDamien Miller <djm@mindrot.org>2020-11-09 10:20:13 +1100
commit10dce8ff68ef615362cfcab0c0cc33ce524e7682 (patch)
treea0f7eaad66193764fae6e9a722050c3dd7d003f9 /readpass.c
parentd5a0cd4fc430c8eda213a4010a612d4778867cd9 (diff)
upstream: unbreak; missing NULL check
Diffstat (limited to 'readpass.c')
-rw-r--r--readpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/readpass.c b/readpass.c
index 6938d03d..78bca832 100644
--- a/readpass.c
+++ b/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.
*
@@ -303,7 +303,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