diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2017-08-27 02:17:52 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2017-08-27 02:17:52 +0000 |
commit | 444ca10cca4b94aece92a2a80a817219b118825b (patch) | |
tree | 62dddd97f247b25115f7e68f20b1ff6ea848b990 | |
parent | 521a86ab19d71c15640dd2c7ceb6da4fea84775a (diff) |
check return value from CBB_init
-rw-r--r-- | regress/lib/libssl/tlsext/tlsexttest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/lib/libssl/tlsext/tlsexttest.c b/regress/lib/libssl/tlsext/tlsexttest.c index 30bbed9d8d0..d3858e4c50e 100644 --- a/regress/lib/libssl/tlsext/tlsexttest.c +++ b/regress/lib/libssl/tlsext/tlsexttest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tlsexttest.c,v 1.13 2017/08/26 20:23:46 doug Exp $ */ +/* $OpenBSD: tlsexttest.c,v 1.14 2017/08/27 02:17:51 beck Exp $ */ /* * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> @@ -495,7 +495,8 @@ test_tlsext_ec_clienthello(void) failure = 1; - CBB_init(&cbb, 0); + if (!CBB_init(&cbb, 0)) + errx(1, "failed to create CBB"); if ((ssl_ctx = SSL_CTX_new(TLS_client_method())) == NULL) errx(1, "failed to create SSL_CTX"); |