bugfix
authorVolker Birk <vb@pep-project.org>
Thu, 26 May 2016 21:57:16 +0200
changeset 6867ebd63dbedca
parent 685 84b0077c771c
child 687 0b3214f5331a
bugfix
src/keymanagement.c
     1.1 --- a/src/keymanagement.c	Thu May 26 18:11:09 2016 +0200
     1.2 +++ b/src/keymanagement.c	Thu May 26 21:57:16 2016 +0200
     1.3 @@ -304,8 +304,11 @@
     1.4      {
     1.5          stringlist_t *keylist = NULL;
     1.6  
     1.7 -        free(identity->fpr);
     1.8 -        
     1.9 +        if (identity->fpr == NULL) {
    1.10 +            free(identity->fpr);
    1.11 +            identity->fpr = NULL;
    1.12 +        }
    1.13 +
    1.14          status = find_keys(session, identity->address, &keylist);
    1.15          assert(status != PEP_OUT_OF_MEMORY);
    1.16          if (status == PEP_OUT_OF_MEMORY)