Skip to content
Snippets Groups Projects
Unverified Commit f9122eb2 authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #2271 from APriestman/7463_fixGetHostsForPerson

7463 Don't return non-active hosts for person
parents 729fbdf9 b9cb684b
No related branches found
No related tags found
No related merge requests found
......@@ -269,6 +269,7 @@ public Person createPerson(String name) throws TskCoreException {
*/
public List<Host> getHostsForPerson(Person person) throws TskCoreException {
String whereStatement = (person == null) ? " WHERE person_id IS NULL " : " WHERE person_id = " + person.getId();
whereStatement += " AND db_status = " + Host.HostDbStatus.ACTIVE.getId();
String queryString = "SELECT * FROM tsk_hosts " + whereStatement;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment