aboutsummaryrefslogtreecommitdiff
path: root/ssl/statem/statem_lib.c
diff options
context:
space:
mode:
authorPierre Pronchery <pierre@freebsdfoundation.org>2023-08-02 16:26:43 +0000
committerEd Maste <emaste@FreeBSD.org>2023-08-03 01:09:39 +0000
commitcf2fc1b0f5ce501f5a29d307294e5637e0f5aba6 (patch)
treea2a5a488a727724dbe0c40f964fd21be2bf2d2c6 /ssl/statem/statem_lib.c
parentb84c4564effd02dfdc047dd6cbeaf910bbb1a888 (diff)
Diffstat (limited to 'ssl/statem/statem_lib.c')
-rw-r--r--ssl/statem/statem_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c
index bcce73bcdc3e..b1ee38b9e5bc 100644
--- a/ssl/statem/statem_lib.c
+++ b/ssl/statem/statem_lib.c
@@ -1,5 +1,5 @@
/*
- * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
@@ -47,7 +47,7 @@ int ssl3_do_write(SSL *s, int type)
ret = ssl3_write_bytes(s, type, &s->init_buf->data[s->init_off],
s->init_num, &written);
- if (ret < 0)
+ if (ret <= 0)
return -1;
if (type == SSL3_RT_HANDSHAKE)
/*