Prevent SOGo backend from crashing when mapistore_set_connection_info is

not called beforehand and connInfo is not initialized.
pull/69/head
Julien Kerihuel 2014-08-19 22:24:34 +02:00 committed by Julio García
parent dc8b73b12b
commit 52ad0e0e5b
1 changed files with 5 additions and 0 deletions

View File

@ -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);