evolution-exchange r1537 - in trunk: . addressbook



Author: sragavan
Date: Fri Jan 11 19:02:34 2008
New Revision: 1537
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1537&view=rev

Log:
2008-01-12  Srinivasa Ragavan  <sragavan novell com>

	** Fix for bug #501567

	* addressbook/e-book-backend-gal.c: (build_query): If unsupported
	queries, Don't crash.




Modified:
   trunk/ChangeLog
   trunk/addressbook/e-book-backend-gal.c

Modified: trunk/addressbook/e-book-backend-gal.c
==============================================================================
--- trunk/addressbook/e-book-backend-gal.c	(original)
+++ trunk/addressbook/e-book-backend-gal.c	Fri Jan 11 19:02:34 2008
@@ -1179,6 +1179,11 @@
 	e_sexp_parse (sexp);
 
 	r = e_sexp_eval (sexp);
+	if (!r) {
+		/* Bad query or it isn't supported */
+		*ldap_query = NULL;
+		retval = GNOME_Evolution_Addressbook_QueryRefused;
+	}
 
 	if (r->type == ESEXP_RES_STRING) {
 		if (!strcmp (r->value.string, "(mail=*)")) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]