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 9a10e18d7a9e1861d32880df7b4392d6a96d1a2e..039172081cf53e57557b48507058fd936d4b15c8 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;
                        }
                }
        }