1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 19:59:02 +00:00

Avoid a crash when description is a list. http://seclists.org/nmap-dev/2017/q1/176

This commit is contained in:
dmiller
2017-03-06 23:18:08 +00:00
parent dcac460ad6
commit 73963022dd

View File

@@ -438,7 +438,10 @@ class CommandProfile (Profile, object):
return command_string
def get_description(self, profile):
return self._get_it(profile, 'description')
desc = self._get_it(profile, 'description')
if isinstance(desc, list):
desc = " ".join(desc)
return desc
def set_command(self, profile, command=''):
self._set_it(profile, 'command', command)