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

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