diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bss_acpt.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bss_acpt.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/libcrypto/bio/bss_acpt.c b/src/lib/libcrypto/bio/bss_acpt.c index d74c710a7f..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.31 2023/07/05 21:23:37 beck 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 | * |
| @@ -65,9 +65,9 @@ | |||
| 65 | 65 | ||
| 66 | #include <openssl/bio.h> | 66 | #include <openssl/bio.h> |
| 67 | #include <openssl/buffer.h> | 67 | #include <openssl/buffer.h> |
| 68 | #include <openssl/err.h> | ||
| 69 | 68 | ||
| 70 | #include "bio_local.h" | 69 | #include "bio_local.h" |
| 70 | #include "err_local.h" | ||
| 71 | 71 | ||
| 72 | #define SOCKET_PROTOCOL IPPROTO_TCP | 72 | #define SOCKET_PROTOCOL IPPROTO_TCP |
| 73 | 73 | ||
| @@ -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); |
