small bugfixes sync
authorVolker Birk <vb@pep.foundation>
Sun, 21 Oct 2018 17:10:03 +0200
branchsync
changeset 3087f4a714769872
parent 3086 c35fd5131941
child 3089 95d63a8d69bf
small bugfixes
src/pgp_netpgp.c
     1.1 --- a/src/pgp_netpgp.c	Sun Oct 21 15:37:18 2018 +0200
     1.2 +++ b/src/pgp_netpgp.c	Sun Oct 21 17:10:03 2018 +0200
     1.3 @@ -1424,10 +1424,8 @@
     1.4          request[HKP_REQ_PREFIX_LEN + encoded_key_len] = '\0';
     1.5  
     1.6          if(!stringlist_add(encoded_keys, request)){
     1.7 -            free(request);
     1.8              result = PEP_OUT_OF_MEMORY;
     1.9          }
    1.10 -
    1.11          free(request);
    1.12  
    1.13  free_encoded_key:
    1.14 @@ -1953,7 +1951,7 @@
    1.15          *has_private = true;
    1.16      }
    1.17      else {
    1.18 -        has_private = false;
    1.19 +        *has_private = false;
    1.20      }
    1.21      return status;
    1.22  }