Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <dl6er@dl6er.de>
  • Loading branch information
DL6ER committed Aug 31, 2020
1 parent a598022 commit 693aa46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/network-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ char *__attribute__((malloc)) getNameFromIP(const char *ipaddr)
// Check for a host name associated with the same device (but another IP address)
querystr = "SELECT name FROM network_addresses "
"WHERE name IS NOT NULL AND "
"network_id = (SELECT network_id FROM network_addresses"
"network_id = (SELECT network_id FROM network_addresses "
"WHERE ip = ?) "
"ORDER BY lastSeen DESC LIMIT 1";
rc = sqlite3_prepare_v2(FTL_db, querystr, -1, &stmt, NULL);
Expand Down

0 comments on commit 693aa46

Please sign in to comment.