Blame SOURCES/sudo-1.8.29-expired-password-part2.patch

ad92e8
From 5472b1751645f750e42a0ba6daac667983b1a56c Mon Sep 17 00:00:00 2001
ad92e8
From: "Todd C. Miller" <Todd.Miller@sudo.ws>
ad92e8
Date: Fri, 24 Jan 2020 11:13:55 -0700
ad92e8
Subject: [PATCH] Fix crash in sudo 1.8.30 when suspending sudo at the password
ad92e8
 prompt. The closure pointer in sudo_conv_callback was being filled in with a
ad92e8
 struct getpass_closure ** instead of a struct getpass_closure *. The bug was
ad92e8
 introduced in the fix for Bug #910; previously the closure variable was a
ad92e8
 struct getpass_closure, not a pointer. Fix from Michael Norton; Bug #914.
ad92e8
ad92e8
---
ad92e8
 plugins/sudoers/check.c | 2 +-
ad92e8
 1 file changed, 1 insertion(+), 1 deletion(-)
ad92e8
ad92e8
diff --git a/plugins/sudoers/check.c b/plugins/sudoers/check.c
ad92e8
index 72e87eef6..9b03c7a05 100644
ad92e8
--- a/plugins/sudoers/check.c
ad92e8
+++ b/plugins/sudoers/check.c
ad92e8
@@ -108,7 +108,7 @@ check_user_interactive(int validated, int mode, struct getpass_closure *closure)
ad92e8
 	/* Construct callback for getpass function. */
ad92e8
 	memset(&cb, 0, sizeof(cb));
ad92e8
 	cb.version = SUDO_CONV_CALLBACK_VERSION;
ad92e8
-	cb.closure = &closure;
ad92e8
+	cb.closure = closure;
ad92e8
 	cb.on_suspend = getpass_suspend;
ad92e8
 	cb.on_resume = getpass_resume;
ad92e8
 	callback = &cb;
ad92e8
-- 
ad92e8
2.25.1
ad92e8