In some platforms, such as POWER, char is defined as unsigned. This patch fix a problem when comparing a char to -1.
Signed-off-by: Marcelo Cerri <[email protected]> --- crypto/ec/ec_pmeth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/ec_pmeth.c b/crypto/ec/ec_pmeth.c index e477418..933bf43 100644 --- a/crypto/ec/ec_pmeth.c +++ b/crypto/ec/ec_pmeth.c @@ -319,7 +319,7 @@ static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) case EVP_PKEY_CTRL_EC_ECDH_COFACTOR: if (p1 == -2) { - if (dctx->cofactor_mode != -1) + if (dctx->cofactor_mode != ((char) -1)) return dctx->cofactor_mode; else { -- 1.7.12 ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
