Set values to NULL after freeing them.
This commit is contained in:
parent
9dd346c90d
commit
9afe95099d
@ -195,6 +195,7 @@ static void gcmtest(int encrypt)
|
||||
OPENSSL_free(key);
|
||||
if (tag)
|
||||
OPENSSL_free(tag);
|
||||
iv = aad = ct = pt = key = tag = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user