PolicyKit: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 1 09:24:15 UTC 2023


 src/programs/pkexec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1807a09522ac7675329db1c8cd6426ec89f2e8b6
Author: Vincent Mihalkovic <vmihalko at redhat.com>
Date:   Wed Feb 1 09:24:01 2023 +0000

    pkexec: avoid access to a NULL pointer

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;
     }
 


More information about the hal-commit mailing list