When deleting personal keys, crash appeared in key_expired, dereferencing null pointer (continued)
authorEdouard Tisserant
Fri, 13 May 2016 20:56:27 +0200
changeset 6215ffe32a37fb4
parent 620 a6368004706a
child 622 ed6f7d40e6a7
When deleting personal keys, crash appeared in key_expired, dereferencing null pointer (continued)
src/pgp_gpg.c
     1.1 --- a/src/pgp_gpg.c	Fri May 13 15:52:37 2016 +0200
     1.2 +++ b/src/pgp_gpg.c	Fri May 13 20:56:27 2016 +0200
     1.3 @@ -1777,7 +1777,7 @@
     1.4      if (status != PEP_STATUS_OK)
     1.5          return status;
     1.6  
     1.7 -    if (key->subkeys)
     1.8 +    if (key && key->subkeys)
     1.9      {
    1.10          *expired = key->subkeys->expired;
    1.11      }