Skip to content
Snippets Groups Projects
Commit 3091dc2b authored by Mark Haines's avatar Mark Haines
Browse files

Add NULL check for message_index pointer

parent 653790ea
No related branches found
No related tags found
No related merge requests found
......@@ -287,7 +287,9 @@ static size_t _decrypt(
return (size_t)-1;
}
*message_index = decoded_results.message_index;
if (message_index != NULL) {
*message_index = decoded_results.message_index;
}
/* verify the signature. We could do this before decoding the message, but
* we allow for the possibility of future protocol versions which use a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment