Blame SOURCES/polkit_result.patch

213e9f
--- cups-pk-helper-0.1.3/src/cups-pk-helper-mechanism.c	2011-09-02 11:30:26.000000000 +0200
213e9f
+++ cups-pk-helper-0.1.3/src/cups-pk-helper-mechanism.c	2011-09-02 11:31:34.000000000 +0200
213e9f
@@ -291,7 +291,7 @@ _check_polkit_for_action_internal (CphMe
213e9f
                 return FALSE;
213e9f
         }
213e9f
 
213e9f
-        if (!polkit_authorization_result_get_is_authorized (pk_result)) {
213e9f
+        if (pk_result == NULL || !polkit_authorization_result_get_is_authorized (pk_result)) {
213e9f
                 g_set_error (error,
213e9f
                              CPH_MECHANISM_ERROR,
213e9f
                              CPH_MECHANISM_ERROR_NOT_PRIVILEGED,