From 16c863d89dc7555d3c1a490c3467c08c00bd421f Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 15 Jan 2015 11:55:04 -0500 Subject: [PATCH] Fixed potential issue when handling multiple Add/Change/Delete/Fetch EAS commands (#3057) --- ActiveSync/SOGoActiveSyncDispatcher+Sync.m | 8 ++++---- NEWS | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ActiveSync/SOGoActiveSyncDispatcher+Sync.m b/ActiveSync/SOGoActiveSyncDispatcher+Sync.m index 14e99449b..6a6f44d89 100644 --- a/ActiveSync/SOGoActiveSyncDispatcher+Sync.m +++ b/ActiveSync/SOGoActiveSyncDispatcher+Sync.m @@ -1019,7 +1019,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. if ([[element tagName] isEqualToString: @"Add"]) { // Add - [self processSyncAddCommand: aCommand + [self processSyncAddCommand: element inCollection: theCollection withType: theFolderType inBuffer: theBuffer]; @@ -1028,7 +1028,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. else if ([[element tagName] isEqualToString: @"Change"]) { // Change - [self processSyncChangeCommand: aCommand + [self processSyncChangeCommand: element inCollection: theCollection withType: theFolderType inBuffer: theBuffer]; @@ -1037,7 +1037,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. else if ([[element tagName] isEqualToString: @"Delete"]) { // Delete - [self processSyncDeleteCommand: aCommand + [self processSyncDeleteCommand: element inCollection: theCollection withType: theFolderType inBuffer: theBuffer]; @@ -1046,7 +1046,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. else if ([[element tagName] isEqualToString: @"Fetch"]) { // Fetch - [self processSyncFetchCommand: aCommand + [self processSyncFetchCommand: element inCollection: theCollection withType: theFolderType inBuffer: theBuffer]; diff --git a/NEWS b/NEWS index b05a63229..cd160edac 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,7 @@ Bug fixes - fixed two potential autorelease pool leak (#3026 and #3051) - fixed birthday offset in EAS - fixed From's full name over EAS + - fixed potential issue when handling multiple Add/Change/Delete/Fetch EAS commands (#3057) 2.2.13 (2014-12-30) -------------------