summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libtls/tls_bio_cb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libtls/tls_bio_cb.c b/src/lib/libtls/tls_bio_cb.c
index 97a763867e..478bc1e614 100644
--- a/src/lib/libtls/tls_bio_cb.c
+++ b/src/lib/libtls/tls_bio_cb.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_bio_cb.c,v 1.12 2016/11/04 15:42:29 jsing Exp $ */ 1/* $OpenBSD: tls_bio_cb.c,v 1.13 2016/11/04 15:43:46 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Tobias Pape <tobias@netshed.de> 3 * Copyright (c) 2016 Tobias Pape <tobias@netshed.de>
4 * 4 *
@@ -174,7 +174,7 @@ tls_bio_read_cb(BIO *bio, char *buf, int size, void *cb_arg)
174static BIO * 174static BIO *
175tls_get_new_cb_bio(struct tls *ctx) 175tls_get_new_cb_bio(struct tls *ctx)
176{ 176{
177 struct bio_cb *b; 177 struct bio_cb *bcb;
178 BIO *bio; 178 BIO *bio;
179 179
180 if (ctx->read_cb == NULL || ctx->write_cb == NULL) 180 if (ctx->read_cb == NULL || ctx->write_cb == NULL)
@@ -186,10 +186,10 @@ tls_get_new_cb_bio(struct tls *ctx)
186 return (NULL); 186 return (NULL);
187 } 187 }
188 188
189 b = (struct bio_cb *)bio->ptr; 189 bcb = (struct bio_cb *)bio->ptr;
190 b->read_cb = tls_bio_read_cb; 190 bcb->read_cb = tls_bio_read_cb;
191 b->write_cb = tls_bio_write_cb; 191 bcb->write_cb = tls_bio_write_cb;
192 b->cb_arg = ctx; 192 bcb->cb_arg = ctx;
193 193
194 return (bio); 194 return (bio);
195} 195}