Add NULL check for message_index pointer
This commit is contained in:
parent
653790eacb
commit
3091dc2b1d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue