Set values to NULL after freeing them.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 8 Feb 2011 18:25:57 +0000 (18:25 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 8 Feb 2011 18:25:57 +0000 (18:25 +0000)
fips/aes/fips_gcmtest.c

index 9a10e18..0391720 100644 (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;
                        }
                }
        }