mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
Don't send message in plain if no cache is found
This commit is contained in:
parent
c6d02779a3
commit
6b6ff7bb2b
1 changed files with 3 additions and 0 deletions
|
|
@ -229,6 +229,9 @@ int sal_message_send(SalOp *op, const char *from, const char *to, const char* co
|
|||
FILE *CACHEFD = fopen(lc->zrtp_secrets_cache, "r+");
|
||||
if (CACHEFD == NULL) {
|
||||
ms_warning("Unable to access ZRTP ZID cache to encrypt message");
|
||||
sal_error_info_set(&op->error_info, SalReasonNotAcceptable, 488, "Unable to encrypt IM", NULL);
|
||||
op->base.root->callbacks.text_delivery_update(op,SalTextDeliveryFailed);
|
||||
return 0;
|
||||
} else {
|
||||
fseek(CACHEFD, 0L, SEEK_END); /* Position to end of file */
|
||||
int cacheSize = ftell(CACHEFD); /* Get file length */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue