fix crash again

This commit is contained in:
Simon Morlat 2017-06-13 14:34:16 +02:00
parent 26872b930d
commit 2f4d1c8558

View file

@ -2300,7 +2300,7 @@ void text_message_with_custom_content_type_and_lime(void) {
static int im_encryption_engine_process_incoming_message_cb(LinphoneImEncryptionEngine *engine, LinphoneChatRoom *room, LinphoneChatMessage *msg) {
if (msg->content_type) {
if (strcmp(msg->content_type, "cipher/b64") == 0) {
size_t b64Size;
size_t b64Size = 0;
unsigned char *output;
bctbx_base64_decode(NULL, &b64Size, (unsigned char *)msg->message, strlen(msg->message));
output = (unsigned char *)ms_malloc(b64Size+1),