input check ENGINE-581
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Tue, 25 Jun 2019 20:27:05 +0200
branchENGINE-581
changeset 3877cad51de6ba9a
parent 3875 01d0bda44169
child 3878 37426cf0d1fe
child 3885 843f7c599a97
input check
src/message_api.c
     1.1 --- a/src/message_api.c	Tue Jun 25 20:23:14 2019 +0200
     1.2 +++ b/src/message_api.c	Tue Jun 25 20:27:05 2019 +0200
     1.3 @@ -4199,6 +4199,9 @@
     1.4          PEP_rating* rating
     1.5      )
     1.6  {
     1.7 +    if (!rating || !fpr)
     1.8 +        return PEP_ILLEGAL_VALUE;
     1.9 +        
    1.10      PEP_comm_type comm_type = PEP_ct_unknown;
    1.11      *rating = PEP_rating_undefined;
    1.12      PEP_STATUS status = get_key_rating(session, fpr, &comm_type);