aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_protection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtls/tls_protection.c')
-rw-r--r--src/libtls/tls_protection.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libtls/tls_protection.c b/src/libtls/tls_protection.c
index dc734545c..c81c0ba84 100644
--- a/src/libtls/tls_protection.c
+++ b/src/libtls/tls_protection.c
@@ -220,7 +220,11 @@ METHOD(tls_protection_t, build, status_t,
sigheader(this->signer_out, this->seq_out, *type,
this->version, data->len);
- this->signer_out->allocate_signature(this->signer_out, *data, &mac);
+ if (!this->signer_out->allocate_signature(this->signer_out,
+ *data, &mac))
+ {
+ return FAILED;
+ }
if (this->crypter_out)
{
chunk_t padding, iv;