]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: unbreak; missing NULL check
authordjm@openbsd.org <djm@openbsd.org>
Sun, 8 Nov 2020 23:19:03 +0000 (23:19 +0000)
committerDamien Miller <djm@mindrot.org>
Sun, 8 Nov 2020 23:20:13 +0000 (10:20 +1100)
OpenBSD-Commit-ID: 6613dfab488123f454d348ef496824476b8c11c0

readpass.c

index 6938d03dc6bb12938fda9d8f1034603d8d009692..78bca832aec7a1eb0a7e79558cb24c8d84e42d6c 100644 (file)
@@ -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