src/keymanagement.c
changeset 2512 1aa220fdf1c7
parent 2507 27d82316d474
child 2519 dd4a8df2fc33
     1.1 --- a/src/keymanagement.c	Fri Feb 16 08:35:34 2018 +0100
     1.2 +++ b/src/keymanagement.c	Fri Feb 16 18:53:44 2018 +0100
     1.3 @@ -587,8 +587,8 @@
     1.4          
     1.5          if (default_own_id) {
     1.6              status = get_identity(session, 
     1.7 +                                  identity->address, 
     1.8                                    default_own_id, 
     1.9 -                                  identity->address, 
    1.10                                    &stored_ident);
    1.11          }
    1.12          // If there isn't an own identity, search for a non-temp stored ident
    1.13 @@ -667,8 +667,8 @@
    1.14           
    1.15          if (default_own_id) {
    1.16              status = get_identity(session, 
    1.17 +                                  identity->address, 
    1.18                                    default_own_id, 
    1.19 -                                  identity->address, 
    1.20                                    &stored_ident);
    1.21          }
    1.22          // If there isn't an own identity, search for a non-temp stored ident
    1.23 @@ -1627,7 +1627,7 @@
    1.24      
    1.25      pEp_identity* my_id = NULL;
    1.26      
    1.27 -    status = get_identity(session, my_user_id, address, &my_id);
    1.28 +    status = get_identity(session, address, my_user_id, &my_id);
    1.29  
    1.30      if (status == PEP_STATUS_OK && my_id) {
    1.31          if (my_id->fpr && strcasecmp(my_id->fpr, fpr) == 0) {