Skip to content

Commit 9eba561

Browse files
author
Andy Polyakov
committed
Minor compatibility fixes.
PR: 2790 Submitted by: Alexei Khlebnikov
1 parent 3b1fb1a commit 9eba561

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

crypto/bio/bio_lib.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -521,40 +521,40 @@ void BIO_free_all(BIO *bio)
521521

522522
BIO *BIO_dup_chain(BIO *in)
523523
{
524-
BIO *ret=NULL,*eoc=NULL,*bio,*new;
524+
BIO *ret=NULL,*eoc=NULL,*bio,*new_bio;
525525

526526
for (bio=in; bio != NULL; bio=bio->next_bio)
527527
{
528-
if ((new=BIO_new(bio->method)) == NULL) goto err;
529-
new->callback=bio->callback;
530-
new->cb_arg=bio->cb_arg;
531-
new->init=bio->init;
532-
new->shutdown=bio->shutdown;
533-
new->flags=bio->flags;
528+
if ((new_bio=BIO_new(bio->method)) == NULL) goto err;
529+
new_bio->callback=bio->callback;
530+
new_bio->cb_arg=bio->cb_arg;
531+
new_bio->init=bio->init;
532+
new_bio->shutdown=bio->shutdown;
533+
new_bio->flags=bio->flags;
534534

535535
/* This will let SSL_s_sock() work with stdin/stdout */
536-
new->num=bio->num;
536+
new_bio->num=bio->num;
537537

538-
if (!BIO_dup_state(bio,(char *)new))
538+
if (!BIO_dup_state(bio,(char *)new_bio))
539539
{
540-
BIO_free(new);
540+
BIO_free(new_bio);
541541
goto err;
542542
}
543543

544544
/* copy app data */
545-
if (!CRYPTO_dup_ex_data(CRYPTO_EX_INDEX_BIO, &new->ex_data,
545+
if (!CRYPTO_dup_ex_data(CRYPTO_EX_INDEX_BIO, &new_bio->ex_data,
546546
&bio->ex_data))
547547
goto err;
548548

549549
if (ret == NULL)
550550
{
551-
eoc=new;
551+
eoc=new_bio;
552552
ret=eoc;
553553
}
554554
else
555555
{
556-
BIO_push(eoc,new);
557-
eoc=new;
556+
BIO_push(eoc,new_bio);
557+
eoc=new_bio;
558558
}
559559
}
560560
return(ret);

crypto/x509/x509_lu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void X509_LOOKUP_free(X509_LOOKUP *ctx)
8787
if (ctx == NULL) return;
8888
if ( (ctx->method != NULL) &&
8989
(ctx->method->free != NULL))
90-
ctx->method->free(ctx);
90+
(*ctx->method->free)(ctx);
9191
OPENSSL_free(ctx);
9292
}
9393

0 commit comments

Comments
 (0)