Skip to content
Commit 28ea6ad6 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix error check in GOST engine



The return value of i2d functions can be negative if an error occurs.
Therefore don't assign the return value to an unsigned type and *then*
check if it is negative.

RT#3862

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(cherry picked from commit 90e7cdff)
parent 4ae1c777
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment