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