Fix importing msfxml files containing a session

[See #1179][SeeRM #7669]
This commit is contained in:
James Lee
2013-01-08 12:08:40 -06:00
parent 2c3ccb5207
commit 95a95d45ec
+2 -2
View File
@@ -675,11 +675,11 @@ class DBManager
if sess_data[:desc]
sess_data[:desc] = sess_data[:desc][0,255]
end
# In the case of multi handler we cannot yet determine the true
# exploit responsible. But we can at least show the parent versus
# just the generic handler:
if session.via_exploit == "exploit/multi/handler"
if session and session.via_exploit == "exploit/multi/handler"
sess_data[:via_exploit] = sess_data[:datastore]['ParentModule']
end