src/keymanagement.c
branchENGINE-293
changeset 2305 f617e0acae94
parent 2304 3bd45e2b8f92
child 2308 b7ef1c9005ae
     1.1 --- a/src/keymanagement.c	Tue Dec 05 10:00:48 2017 +0100
     1.2 +++ b/src/keymanagement.c	Tue Dec 05 16:35:23 2017 +0100
     1.3 @@ -438,11 +438,13 @@
     1.4      status = get_own_userid(session, &own_id);
     1.5  
     1.6      assert(EMPTYSTR(identity->user_id) ||
     1.7 -           (own_id && strcmp(identity->user_id, own_id) == 0));
     1.8 +           (own_id && strcmp(identity->user_id, own_id) == 0) ||
     1.9 +           !own_id);
    1.10  
    1.11      if (!(session && identity && !EMPTYSTR(identity->address) &&
    1.12              (EMPTYSTR(identity->user_id) ||
    1.13 -            (own_id && strcmp(identity->user_id, own_id) == 0))))
    1.14 +            (own_id && strcmp(identity->user_id, own_id) == 0) ||
    1.15 +             !own_id)))
    1.16          return ADD_TO_LOG(PEP_ILLEGAL_VALUE);
    1.17  
    1.18      identity->comm_type = PEP_ct_pEp;