From 04e804e62fd1e14e7f5671eb7e1e545bdcd18dd2 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Mon, 6 Jun 2016 13:07:48 -0400 Subject: [PATCH] (fix) skip potentially bogus cards coming from LDAP --- ActiveSync/SOGoActiveSyncDispatcher.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ActiveSync/SOGoActiveSyncDispatcher.m b/ActiveSync/SOGoActiveSyncDispatcher.m index 921ba808c..cb1057488 100644 --- a/ActiveSync/SOGoActiveSyncDispatcher.m +++ b/ActiveSync/SOGoActiveSyncDispatcher.m @@ -2575,8 +2575,9 @@ void handle_eas_terminate(int signum) { contact = [allContacts objectAtIndex: j]; - // We skip lists for now - if ([[contact objectForKey: @"c_component"] isEqualToString: @"vlist"]) + // We skip lists for now and bogus entries + if ([[contact objectForKey: @"c_component"] isEqualToString: @"vlist"] || + [[contact objectForKey: @"c_name"] length] == 0) continue; // We get the LDIF entry of our record, for easier processing