Do not crash on authentiation token NULL && update bctbx

This commit is contained in:
Benjamin Reis 2017-01-10 11:59:30 +01:00
parent 0102fe6dd2
commit cda9957f7d
2 changed files with 4 additions and 2 deletions

View file

@ -1355,7 +1355,9 @@ static void linphone_iphone_call_encryption_changed(LinphoneCore *lc, LinphoneCa
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
[dict setObject:[NSValue valueWithPointer:call] forKey:@"call"];
[dict setObject:[NSNumber numberWithBool:on] forKey:@"on"];
[dict setObject:[NSString stringWithUTF8String:authentication_token] forKey:@"token"];
if (authentication_token) {
[dict setObject:[NSString stringWithUTF8String:authentication_token] forKey:@"token"];
}
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneCallEncryptionChanged object:self userInfo:dict];
}

@ -1 +1 @@
Subproject commit 058967d340a97d7a4c155490398162b24c2ea399
Subproject commit 7254fe94e7155f0164fca177f8bf54ab82b76e84