summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_acpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_acpt.c')
-rw-r--r--src/lib/libcrypto/bio/bss_acpt.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libcrypto/bio/bss_acpt.c b/src/lib/libcrypto/bio/bss_acpt.c
index 73d147f4c1..60e61100b1 100644
--- a/src/lib/libcrypto/bio/bss_acpt.c
+++ b/src/lib/libcrypto/bio/bss_acpt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_acpt.c,v 1.32 2025/05/10 05:54:38 tb Exp $ */ 1/* $OpenBSD: bss_acpt.c,v 1.33 2025/06/02 12:18:21 jsg Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -261,11 +261,12 @@ again:
261 if (c->bio_chain != NULL) { 261 if (c->bio_chain != NULL) {
262 if ((dbio = BIO_dup_chain(c->bio_chain)) == NULL) 262 if ((dbio = BIO_dup_chain(c->bio_chain)) == NULL)
263 goto err; 263 goto err;
264 if (!BIO_push(dbio, bio)) goto err; 264 if (!BIO_push(dbio, bio))
265 bio = dbio; 265 goto err;
266 bio = dbio;
266 } 267 }
267 if (BIO_push(b, bio) 268 if (BIO_push(b, bio) == NULL)
268 == NULL) goto err; 269 goto err;
269 270
270 c->state = ACPT_S_OK; 271 c->state = ACPT_S_OK;
271 return (1); 272 return (1);