Skip to content

Commit

Permalink
fix(win32): cleanup client state in addon destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Aug 14, 2018
1 parent e1396e0 commit 5394561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/kerberos.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

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

class KerberosServer : public Nan::ObjectWrap {
public:
static NAN_MODULE_INIT(Init);
Expand Down
8 changes: 4 additions & 4 deletions src/win32/kerberos_win32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5394561

Please sign in to comment.