diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-11 23:02:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-11 23:02:48 +0000 |
commit | 3e1583072445a97fbd9dd223d8c8b702013ae1d6 (patch) | |
tree | 9beadf45e5c96812d0f9a2a10c94a6cc256f94d3 /protocols/JabberG/src/jabber_secur.cpp | |
parent | 27c63813af1433d827335b5d1d34c2b70eddeb6b (diff) |
minor fixes, code cleaning etc
git-svn-id: http://svn.miranda-ng.org/main/trunk@12773 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_secur.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_secur.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp index 6524052d4b..54f783b2bc 100644 --- a/protocols/JabberG/src/jabber_secur.cpp +++ b/protocols/JabberG/src/jabber_secur.cpp @@ -42,17 +42,16 @@ TNtlmAuth::TNtlmAuth(ThreadData *info, const char* mechanism, const TCHAR *hostn else if (!strcmp(mechanism, "NTLM"))
szProvider = _T("NTLM");
else {
+LBL_Invalid:
bIsValid = false;
+ hProvider = NULL;
return;
}
TCHAR szSpn[1024] = _T("");
- if (strcmp(mechanism, "NTLM")) {
- if (!getSpn(szSpn, SIZEOF(szSpn)) && !strcmp(mechanism, "GSSAPI")) {
- bIsValid = false;
- return;
- }
- }
+ if (strcmp(mechanism, "NTLM"))
+ if (!getSpn(szSpn, SIZEOF(szSpn)) && !strcmp(mechanism, "GSSAPI"))
+ goto LBL_Invalid;
if ((hProvider = Netlib_InitSecurityProvider2(szProvider, szSpn)) == NULL)
bIsValid = false;
@@ -357,6 +356,7 @@ char* TPlainAuth::getInitialRequest() TJabberAuth::TJabberAuth(ThreadData* pInfo) :
bIsValid(true),
+ complete(0),
szName(NULL),
info(pInfo)
{
|