mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix crash when using dir: operator
This commit is contained in:
parent
38b843558e
commit
adfc39f4f3
2 changed files with 5 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue