From 52ad0e0e5b12d88d0d8259284537d360084cfb2a Mon Sep 17 00:00:00 2001 From: Julien Kerihuel Date: Tue, 19 Aug 2014 22:24:34 +0200 Subject: [PATCH] Prevent SOGo backend from crashing when mapistore_set_connection_info is not called beforehand and connInfo is not initialized. --- OpenChange/MAPIStoreContext.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenChange/MAPIStoreContext.m b/OpenChange/MAPIStoreContext.m index 1b370c2f3..376a96623 100644 --- a/OpenChange/MAPIStoreContext.m +++ b/OpenChange/MAPIStoreContext.m @@ -276,6 +276,11 @@ static inline NSURL *CompleteURLFromMapistoreURI (const char *uri) { NSString *username; + if (newConnInfo == NULL) + { + return nil; + } + if ((self = [self init])) { ASSIGN (contextUrl, newUrl);