diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2016-02-06 19:10:49 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2016-02-06 19:10:49 -0500 |
commit | d6a8869ea346ece7026afbc38d2cd4344a45909f (patch) | |
tree | 777762b04c8f3eecf88094416c05553842fef868 /lib/vtls | |
parent | 1ca54daf3ebc4dc587f297f057afd9532463add2 (diff) |
openssl: Fix signed/unsigned mismatch warning in X509V3_ext
sk_X509_EXTENSION_num may return an unsigned integer, however the value
will fit in an int.
Bug: https://github.com/curl/curl/commit/dd1b44c#commitcomment-15913896
Reported-by: Gisle Vanem
Diffstat (limited to 'lib/vtls')
-rw-r--r-- | lib/vtls/openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index c719de5c6..70cfb84af 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2250,11 +2250,11 @@ static int X509V3_ext(struct SessionHandle *data, int i; size_t j; - if(sk_X509_EXTENSION_num(exts) <= 0) + if((int)sk_X509_EXTENSION_num(exts) <= 0) /* no extensions, bail out */ return 1; - for(i=0; i<sk_X509_EXTENSION_num(exts); i++) { + for(i=0; i < (int)sk_X509_EXTENSION_num(exts); i++) { ASN1_OBJECT *obj; X509_EXTENSION *ext = sk_X509_EXTENSION_value(exts, i); BUF_MEM *biomem; |