summaryrefslogtreecommitdiff
path: root/package/nmap/patches/patch-Target_cc
blob: 4358b450914877842b07c1a88d069531090a0900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- nmap-6.25.orig/Target.cc	2012-08-14 18:36:25.000000000 +0200
+++ nmap-6.25/Target.cc	2013-07-12 13:59:19.000000000 +0200
@@ -162,10 +162,12 @@ void Target::Recycle() {
 
 Target::~Target() {
   FreeInternal();
+#ifndef NOLUA
   while (!scriptResults.empty()) {
     scriptResults.front().clear();
     scriptResults.pop_front();
   }
+#endif
 }
 
 void Target::FreeInternal() {