network-manager-applet r1249 - in trunk: . src/connection-editor
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: network-manager-applet r1249 - in trunk: . src/connection-editor
- Date: Sat, 4 Apr 2009 15:27:17 +0000 (UTC)
Author: dcbw
Date: Sat Apr 4 15:27:16 2009
New Revision: 1249
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=1249&view=rev
Log:
2009-04-04 Dan Williams <dcbw redhat com>
* src/connection-editor/polkit-helpers.c
- (pk_helper_obtain_auth): handle NULL PolicyKit error
Modified:
trunk/ChangeLog
trunk/src/connection-editor/polkit-helpers.c
Modified: trunk/src/connection-editor/polkit-helpers.c
==============================================================================
--- trunk/src/connection-editor/polkit-helpers.c (original)
+++ trunk/src/connection-editor/polkit-helpers.c Sat Apr 4 15:27:16 2009
@@ -48,9 +48,14 @@
gboolean success = FALSE;
guint xid = 0;
+ if (!pk_error) {
+ g_set_error (error, 0, 0, "%s", _("PolicyKit authorization request was invalid."));
+ return FALSE;
+ }
+
tokens = g_strsplit (pk_error->message, " ", 2);
if (g_strv_length (tokens) != 2) {
- g_set_error (error, 0, 0, "%s", _("PolicyKit authorization was malformed."));
+ g_set_error (error, 0, 0, "%s", _("PolicyKit authorization request was malformed."));
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]