1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Use const and avoid strdup in fingerprint parsing

This commit is contained in:
dmiller
2022-09-13 16:10:05 +00:00
parent f44f255da3
commit 9a494348c5
4 changed files with 72 additions and 78 deletions

View File

@@ -114,7 +114,7 @@ struct FingerMatch {
/* For IPv6 matches, the number of fingerprints that contributed to this
* classification group */
unsigned short numprints;
char *OS_name;
const char *OS_name;
std::vector<OS_Classification> OS_class;
FingerMatch() {