Add NULL check for message_index pointer

This commit is contained in:
Mark Haines 2016-10-20 11:35:45 +01:00
parent 653790eacb
commit 3091dc2b1d

View file

@ -287,7 +287,9 @@ static size_t _decrypt(
return (size_t)-1; return (size_t)-1;
} }
if (message_index != NULL) {
*message_index = decoded_results.message_index; *message_index = decoded_results.message_index;
}
/* verify the signature. We could do this before decoding the message, but /* verify the signature. We could do this before decoding the message, but
* we allow for the possibility of future protocol versions which use a * we allow for the possibility of future protocol versions which use a