[openssh-commits] [openssh] 01/01: upstream: unbreak; missing NULL check

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Nov 9 10:20:19 AEDT 2020


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 10dce8ff68ef615362cfcab0c0cc33ce524e7682
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Sun Nov 8 23:19:03 2020 +0000

    upstream: unbreak; missing NULL check
    
    OpenBSD-Commit-ID: 6613dfab488123f454d348ef496824476b8c11c0
---
 readpass.c | 4 ++--
 1 file 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

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list