From 1807a09522ac7675329db1c8cd6426ec89f2e8b6 Mon Sep 17 00:00:00 2001 From: Vincent Mihalkovic Date: Wed, 1 Feb 2023 09:24:01 +0000 Subject: pkexec: avoid access to a NULL pointer --- src/programs/pkexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c index e5f4c2e..ccb1771 100644 --- a/src/programs/pkexec.c +++ b/src/programs/pkexec.c @@ -838,7 +838,7 @@ main (int argc, char *argv[]) { g_printerr ("Error checking for authorization %s: %s\n", action_id, - error->message); + error ? error->message : "Could not verify; error object not present."); goto out; } -- cgit v1.2.1