summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeck <>2017-08-27 02:17:51 +0000
committerbeck <>2017-08-27 02:17:51 +0000
commit69baf63b5056297bd9125ea95453d12c33f78e64 (patch)
tree2fcf268d42400d6d65b86d9389c492ddbb0642db
parentec59f338ce2a8842a8478c243e444aefb1459dfa (diff)
downloadopenbsd-69baf63b5056297bd9125ea95453d12c33f78e64.tar.gz
openbsd-69baf63b5056297bd9125ea95453d12c33f78e64.tar.bz2
openbsd-69baf63b5056297bd9125ea95453d12c33f78e64.zip
check return value from CBB_init
Diffstat (limited to '')
-rw-r--r--src/regress/lib/libssl/tlsext/tlsexttest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c
index 30bbed9d8d..d3858e4c50 100644
--- a/src/regress/lib/libssl/tlsext/tlsexttest.c
+++ b/src/regress/lib/libssl/tlsext/tlsexttest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tlsexttest.c,v 1.13 2017/08/26 20:23:46 doug Exp $ */ 1/* $OpenBSD: tlsexttest.c,v 1.14 2017/08/27 02:17:51 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -495,7 +495,8 @@ test_tlsext_ec_clienthello(void)
495 495
496 failure = 1; 496 failure = 1;
497 497
498 CBB_init(&cbb, 0); 498 if (!CBB_init(&cbb, 0))
499 errx(1, "failed to create CBB");
499 500
500 if ((ssl_ctx = SSL_CTX_new(TLS_client_method())) == NULL) 501 if ((ssl_ctx = SSL_CTX_new(TLS_client_method())) == NULL)
501 errx(1, "failed to create SSL_CTX"); 502 errx(1, "failed to create SSL_CTX");