src/keymanagement.c
branchENGINE-463
changeset 2995 6f2f9a7c060e
parent 2985 536d628a21a2
child 3001 8c1aafb3ad57
child 3011 a64991e4c87c
     1.1 --- a/src/keymanagement.c	Thu Oct 04 13:13:06 2018 +0200
     1.2 +++ b/src/keymanagement.c	Fri Oct 05 00:57:35 2018 +0200
     1.3 @@ -577,6 +577,8 @@
     1.4                              else if (input_is_TOFU && !curr_is_TOFU) {
     1.5                                  // Replace ruthlessly - this is NOT supposed to happen.
     1.6                                  // BAD APP BEHAVIOUR.
     1.7 +                                free(identity->user_id);
     1.8 +                                identity->user_id = strdup(this_id->user_id);
     1.9                                  stored_ident = this_id;
    1.10                                  // FIXME: free list.
    1.11                                  break;