diff options
Diffstat (limited to 'engines/e_ossltest.c')
-rw-r--r-- | engines/e_ossltest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/e_ossltest.c b/engines/e_ossltest.c index 2bda610f46..64376247c3 100644 --- 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); |