Update security helper templates

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2019-06-13 06:22:24 +02:00
parent f47faea71b
commit badfb43772
2 changed files with 10 additions and 10 deletions

View File

@@ -29,7 +29,7 @@
winstd::sec_credentials::~sec_credentials()
{
if (m_h) {
if (m_h != invalid) {
FreeCredentialsHandle(m_h);
delete m_h;
}
@@ -49,7 +49,7 @@ void winstd::sec_credentials::free_internal()
winstd::sec_context::~sec_context()
{
if (m_h) {
if (m_h != invalid) {
DeleteSecurityContext(m_h);
delete m_h;
}