projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use the TLSv1.3 record header as AAD
[openssl.git]
/
engines
/
e_ossltest.c
diff --git
a/engines/e_ossltest.c
b/engines/e_ossltest.c
index 2bda610f46d413157b6dcf667d4584d68740b0df..64376247c3f0334ec36d3ed5aeeaca28ab9489d4 100644
(file)
--- a/
engines/e_ossltest.c
+++ b/
engines/e_ossltest.c
@@
-637,7
+637,7
@@
int ossltest_aes128_gcm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
EVP_CIPHER_meth_get_do_cipher(EVP_aes_128_gcm())(ctx, out, in, inl);
/* Throw it all away and just use the plaintext as the output */
- if (tmpbuf != NULL)
+ if (tmpbuf != NULL
&& out != NULL
)
memcpy(out, tmpbuf, inl);
OPENSSL_free(tmpbuf);