Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 162109
Collapse All | Expand All

(-)files/cpu-1.4.3-gcc4.patch.orig (+16 lines)
Lines 12-14 Link Here
12
   passent->pw_gid = -10;
12
   passent->pw_gid = -10;
13
13
14
 	  	 
14
 	  	 
15
--- cpu-1.4.3/src/plugins/ldap/ld.c
16
+++ cpu-1.4.3/src/plugins/ldap/ld.c
17
@@ -803,9 +803,10 @@
18
     return -10;
19
   if (gid != NULL)
20
     {
21
-      gid = ldap_get_values (ld, pos, gid)[0];
22
-      if (gid != NULL)
23
-	return atoi (gid);
24
+      char **vals;
25
+      vals = ldap_get_values (ld, pos, gid);
26
+      if (vals != NULL && vals[0] != NULL)
27
+	return atoi (vals[0]);
28
       else
29
 	return -10;
30
     }

Return to bug 162109