mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
Fix a crash that can occur due to a NULL pointer dereference when enabling
the greeter. Obtained from: gdm2 CVS Approved by: portmgr (implicit)
This commit is contained in:
parent
c92e8bce0e
commit
645aab6517
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=175413
@ -8,6 +8,7 @@
|
||||
|
||||
PORTNAME= gdm
|
||||
PORTVERSION= 2.16.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11 gnome
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME}
|
||||
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
||||
|
20
x11/gdm/files/patch-gui_greeter_greeter_item_ulist.c
Normal file
20
x11/gdm/files/patch-gui_greeter_greeter_item_ulist.c
Normal file
@ -0,0 +1,20 @@
|
||||
===================================================================
|
||||
RCS file: /cvs/gnome/gdm2/gui/greeter/greeter_item_ulist.c,v
|
||||
retrieving revision 1.29
|
||||
retrieving revision 1.30
|
||||
diff -u -r1.29 -r1.30
|
||||
--- gui/greeter/greeter_item_ulist.c 2006/05/31 09:24:08 1.29
|
||||
+++ gui/greeter/greeter_item_ulist.c 2006/10/09 15:30:31 1.30
|
||||
@@ -66,8 +66,10 @@
|
||||
greeter_item_ulist_unset_selected_user (void)
|
||||
{
|
||||
GtkTreeSelection *selection;
|
||||
- selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (user_list));
|
||||
- gtk_tree_selection_unselect_all (selection);
|
||||
+ if (user_list != NULL) {
|
||||
+ selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (user_list));
|
||||
+ gtk_tree_selection_unselect_all (GTK_TREE_SELECTION (selection));
|
||||
+ }
|
||||
|
||||
if (selected_user != NULL)
|
||||
g_free (selected_user);
|
Loading…
Reference in New Issue
Block a user