mirror of
https://github.com/curl/curl.git
synced 2026-04-17 22:01:41 +03:00
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: dd1b44c (commitcomment-15913896)
Reported-by: Gisle Vanem
This commit is contained in:
parent
1ca54daf3e
commit
d6a8869ea3
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue