src/message_api.c
changeset 4719 b4d7c37ac808
parent 4694 bf41b999ea84
child 4726 c3a9837c15e6
child 4742 fc606be2e563
     1.1 --- a/src/message_api.c	Thu May 28 11:48:42 2020 +0200
     1.2 +++ b/src/message_api.c	Fri May 29 14:39:48 2020 +0200
     1.3 @@ -3296,8 +3296,11 @@
     1.4  
     1.5      PEP_STATUS status = PEP_STATUS_OK;
     1.6      
     1.7 -    if (strcasecmp(src->from->address, inner_message->from->address) == 0)
     1.8 +    if (src->from && inner_message->from && 
     1.9 +           src->from->address && inner_message->from->address && 
    1.10 +           strcasecmp(src->from->address, inner_message->from->address) == 0) {
    1.11          status = reconcile_identity(src->from, inner_message->from);
    1.12 +    }    
    1.13      
    1.14      if (status == PEP_STATUS_OK && inner_message->to)
    1.15          status = reconcile_identity_lists(src->to, inner_message->to);