Import_attached_keys(msg) now calls update_identity(msg->from) to ensure that identity exist before evaluating decrypt colors
1.1 --- a/src/message_api.c Mon Feb 01 12:12:19 2016 +0100
1.2 +++ b/src/message_api.c Mon Feb 01 16:25:15 2016 +0100
1.3 @@ -800,6 +800,8 @@
1.4 import_key(session, bl->value, bl->size);
1.5 }
1.6 }
1.7 + if(msg->from && msg->from->user_id && msg->from->address)
1.8 + update_identity(session, msg->from);
1.9 }
1.10
1.11 void attach_own_key(PEP_SESSION session, message *msg)
1.12 @@ -1193,6 +1195,7 @@
1.13
1.14 char *re_ptext = NULL;
1.15 size_t re_psize;
1.16 +
1.17 free_stringlist(_keylist);
1.18 _keylist = NULL;
1.19