From adfc39f4f36d10b14b8bd35a71ebcff8a7b1c107 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 15 Nov 2018 05:03:46 +0000 Subject: [PATCH] Fix crash when using dir: operator --- CHANGELOG | 4 ++++ zenmap/zenmapGUI/SearchGUI.py | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 9d807ec1b..b52052083 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ #Nmap Changelog ($Id$); -*-text-*- +o [Zenmap] Fix a crash in results search when using the dir: operator: + AttributeError: 'SearchDB' object has no attribute 'match_dir' + [Daniel Miller] + o [Ncat][GH#1372] Fixed an issue with Ncat -e on Windows that caused early termination of connections. [Alberto Garcia Illera] diff --git a/zenmap/zenmapGUI/SearchGUI.py b/zenmap/zenmapGUI/SearchGUI.py index 9ecdafe23..220547d10 100644 --- a/zenmap/zenmapGUI/SearchGUI.py +++ b/zenmap/zenmapGUI/SearchGUI.py @@ -214,10 +214,7 @@ class SearchParser(object): # processed by the SearchResult.search() function. It is needed only to # create a new SearchDir object, which is then used to perform the # actual search(). - if "dir" in self.search_dict: - self.search_gui.init_search_dirs(self.search_dict["dir"]) - else: - self.search_gui.init_search_dirs([]) + self.search_gui.init_search_dirs(self.search_dict.pop("dir", [])) class SearchGUI(gtk.VBox, object):