Skip to content
Permalink
Browse files

fix(win32): cleanup client state in addon destructor

  • Loading branch information
mbroadst committed Aug 14, 2018
1 parent e1396e0 commit 53945614d556f5af42e8483af03127602f98eb19
Showing with 5 additions and 4 deletions.
  1. +1 −0 src/kerberos.h
  2. +4 −4 src/win32/kerberos_win32.cc
@@ -3,6 +3,7 @@

#include <nan.h>
#include "kerberos_common.h"

class KerberosServer : public Nan::ObjectWrap {
public:
static NAN_MODULE_INIT(Init);
@@ -30,10 +30,10 @@ NAN_INLINE std::wstring WStringOptionValue(v8::Local<v8::Object> options, const

/// KerberosClient
KerberosClient::~KerberosClient() {
// if (_state != NULL) {
// authenticate_gss_client_clean(_state);
// _state = NULL;
// }
if (_state != NULL) {
auth_sspi_client_clean(_state);
_state = NULL;
}
}

NAN_METHOD(KerberosClient::Step) {

0 comments on commit 5394561

Please sign in to comment.
You can’t perform that action at this time.