Skip to content
Commit 90e7cdff 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>
parent fc52ac90
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