Blame SOURCES/evolution-data-server-3.28.5-cve-2019-3890.patch

f0a9c3
diff -up evolution-data-server-3.28.5/src/libedataserver/e-data-server-util.c.cve-2019-3890 evolution-data-server-3.28.5/src/libedataserver/e-data-server-util.c
f0a9c3
--- evolution-data-server-3.28.5/src/libedataserver/e-data-server-util.c.cve-2019-3890	2019-04-15 09:25:49.273786456 +0200
f0a9c3
+++ evolution-data-server-3.28.5/src/libedataserver/e-data-server-util.c	2019-04-15 09:35:00.784778830 +0200
f0a9c3
@@ -3147,11 +3147,13 @@ e_util_can_use_collection_as_credential_
f0a9c3
 				if (can_use_collection) {
f0a9c3
 					gchar *method_source, *method_collection;
f0a9c3
 
f0a9c3
-					/* Also check the method; if different, then rather not use the collection */
f0a9c3
+					/* Also check the method; if different, then rather not use the collection.
f0a9c3
+					   Consider 'none' method on the child as the same as the collection method. */
f0a9c3
 					method_source = e_source_authentication_dup_method (auth_source);
f0a9c3
 					method_collection = e_source_authentication_dup_method (auth_collection);
f0a9c3
 
f0a9c3
 					can_use_collection = !method_source || !method_collection ||
f0a9c3
+						g_ascii_strcasecmp (method_source, "none") == 0 ||
f0a9c3
 						g_ascii_strcasecmp (method_source, method_collection) == 0;
f0a9c3
 
f0a9c3
 					g_free (method_source);