[evolution-data-server] Fix for bug #331633
Irene Huang <[email protected]>
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <[email protected]> |
Hi, Harish The following patch fixes bug #331633 - Evolution crashes upon starting up on Solaris. Please review. Thanks --Irene _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches
EDS-startup-crash-with-sunkerberos-331633.diff
(text/x-patch, 1.4 KB)
Index: servers/exchange/ChangeLog =================================================================== RCS file: /cvs/gnome/evolution-data-server/servers/exchange/ChangeLog,v retrieving revision 1.59 diff -u -r1.59 ChangeLog --- servers/exchange/ChangeLog 13 Feb 2006 12:21:38 -0000 1.59 +++ servers/exchange/ChangeLog 18 Feb 2006 04:41:10 -0000 @@ -1,3 +1,10 @@ +2006-02-18 Irene Huang <[email protected]> + + Fixes bug #331633 + + * lib/e2k-global-catalog.c: (find_domain_dn): Check to see + if the variable dn is zero-length or not. + 2006-02-13 Chenthill Palanisamy <[email protected]> * storage/exchange-hierarchy-webdav.c: (init), Index: servers/exchange/lib/e2k-global-catalog.c =================================================================== RCS file: /cvs/gnome/evolution-data-server/servers/exchange/lib/e2k-global-catalog.c,v retrieving revision 1.5 diff -u -r1.5 e2k-global-catalog.c --- servers/exchange/lib/e2k-global-catalog.c 13 Dec 2005 03:54:28 -0000 1.5 +++ servers/exchange/lib/e2k-global-catalog.c 18 Feb 2006 04:41:10 -0000 @@ -1023,7 +1023,10 @@ g_string_append (dn_value, ","); sub_domain = strtok (NULL, "."); } - dn = g_strndup (dn_value->str, strlen(dn_value->str) - 1); + if (strlen(dn_value->str)) + dn = g_strndup (dn_value->str, strlen(dn_value->str) - 1); + else + dn = NULL; g_string_free (dn_value, TRUE); return dn; }