Set values to NULL after freeing them.

This commit is contained in:
Dr. Stephen Henson 2011-02-08 18:25:57 +00:00
parent 9dd346c90d
commit 9afe95099d

View File

@ -195,6 +195,7 @@ static void gcmtest(int encrypt)
OPENSSL_free(key);
if (tag)
OPENSSL_free(tag);
iv = aad = ct = pt = key = tag = NULL;
}
}
}