Skip to content
Snippets Groups Projects
Commit fe3b69f6 authored by Kelly Kelly's avatar Kelly Kelly
Browse files

Quick fix

parent 8ac55b20
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,7 @@ static boolean isWindowsSpecialSid(String sid) {
return true;
}
for (String specialPrefix: SPECIAL_SID_PREFIXES) {
if (sid.startsWith(specialPrefix)) {
if (tempSID.startsWith(specialPrefix)) {
return true;
}
}
......@@ -197,7 +197,7 @@ public static String getWindowsRealmAddress(String sid) throws TskCoreException
String tempSID = stripWindowsBackupPostfix(sid);
// When copying realms into portable cases, the SID may already be set to the special windows string.
if (isWindowsSpecialSid(tempSID) || sid.equals(SPECIAL_WINDOWS_REALM_ADDR)) {
if (isWindowsSpecialSid(tempSID) || tempSID.equals(SPECIAL_WINDOWS_REALM_ADDR)) {
realmAddr = SPECIAL_WINDOWS_REALM_ADDR;
} else {
// regular SIDs should have at least 5 components: S-1-x-y-z
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment