diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2019-02-25 16:39:15 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2019-02-25 16:39:15 +0000 |
commit | 4d5567b593ece15ba1e472f12457cf9965ef04cc (patch) | |
tree | 8a19e0b9aa60bd8c50ddbfaf641515830058deb3 /lib/libssl/tls13_client.c | |
parent | a6f9444f38cd0219f07e852aaba6631f359a49fd (diff) |
Correct a few error returns.
Diffstat (limited to 'lib/libssl/tls13_client.c')
-rw-r--r-- | lib/libssl/tls13_client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/tls13_client.c b/lib/libssl/tls13_client.c index 63dff310610..5071507bbd6 100644 --- a/lib/libssl/tls13_client.c +++ b/lib/libssl/tls13_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_client.c,v 1.10 2019/02/14 18:06:11 jsing Exp $ */ +/* $OpenBSD: tls13_client.c,v 1.11 2019/02/25 16:39:14 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> * @@ -620,7 +620,7 @@ tls13_server_finished_recv(struct tls13_ctx *ctx) context.len = transcript_hash_len; if (!tls13_derive_application_secrets(secrets, &context)) - return TLS13_IO_FAILURE; + goto err; /* * Any records following the server finished message must be encrypted @@ -628,7 +628,7 @@ tls13_server_finished_recv(struct tls13_ctx *ctx) */ if (!tls13_record_layer_set_read_traffic_key(ctx->rl, &secrets->server_application_traffic)) - return TLS13_IO_FAILURE; + goto err; ret = 1; @@ -693,7 +693,7 @@ tls13_client_finished_send(struct tls13_ctx *ctx) */ if (!tls13_record_layer_set_write_traffic_key(ctx->rl, &secrets->client_application_traffic)) - return TLS13_IO_FAILURE; + goto err; ret = 1; |