summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Mihalkovic <vmihalko@redhat.com>2023-02-01 09:24:01 +0000
committerJan Rybar <jrybar@redhat.com>2023-02-01 09:24:01 +0000
commit1807a09522ac7675329db1c8cd6426ec89f2e8b6 (patch)
treed0cfdfbb4c6ab10840e5fefc8dfa8e3d86a5933c
parent7550b683c0fe514d4cb8a173f4ee5b2410c7c3cd (diff)
pkexec: avoid access to a NULL pointer
-rw-r--r--src/programs/pkexec.c2
1 files changed, 1 insertions, 1 deletions
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;
}