handle situation if domw is NULL

This commit is contained in:
lupo1977 2018-01-31 02:00:35 +01:00
parent 23e46f5bb4
commit 8b62d0b317
1 changed files with 5 additions and 0 deletions

View File

@ -253,6 +253,11 @@ process_custom_lsa_auth(char* user, const char* pwd, char* lsa_pkg)
*tmp = L'\0';
}
if (domw == NULL) {
debug("no domain found");
goto done;
}
/* call into LSA provider , get and duplicate token */
InitLsaString(&logon_process_name, "sshd");
InitLsaString(&lsa_auth_package_name, lsa_pkg);