1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-23 16:09:02 +00:00

Handle internationalized domain names (IDN)

This commit is contained in:
dmiller
2022-09-21 21:03:57 +00:00
parent 2f9fde995c
commit e3ab97215d
7 changed files with 68 additions and 24 deletions

View File

@@ -125,6 +125,10 @@ NmapOps::~NmapOps() {
free(datadir);
datadir = NULL;
}
if (locale) {
free(locale);
locale = NULL;
}
#ifndef NOLUA
if (scriptversion || script)
@@ -305,6 +309,7 @@ void NmapOps::Initialize() {
numhosts_up = 0;
numhosts_scanning = 0;
noninteractive = false;
locale = NULL;
current_scantype = STYPE_UNKNOWN;
ipoptions = NULL;
ipoptionslen = 0;