Skip to content

Commit 8b62d0b

Browse files
committed
handle situation if domw is NULL
1 parent 23e46f5 commit 8b62d0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/win32/win32compat/win32_usertoken_utils.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@ process_custom_lsa_auth(char* user, const char* pwd, char* lsa_pkg)
253253
*tmp = L'\0';
254254
}
255255

256+
if (domw == NULL) {
257+
debug("no domain found");
258+
goto done;
259+
}
260+
256261
/* call into LSA provider , get and duplicate token */
257262
InitLsaString(&logon_process_name, "sshd");
258263
InitLsaString(&lsa_auth_package_name, lsa_pkg);

0 commit comments

Comments
 (0)