Commits

Anonymous committed 219b625 Draft

Removed unused comments

  • Participants
  • Parent commits a6c4884

Comments (0)

Files changed (1)

File modules/channel/DionaeaHarvester-ng/DionaeaHarvester-ng.cc

                                       " host=" + credentials.hostname;
 
     // let's call it always, just to avoid memleaks and stuff
-    // BTW, should we delete dbconnection_t object?
     disconnect();
     try {
         connection = new dbconnection_t(connection_credentials);
     const char* s = NULL;
     u_int16_t d;
     for(int i=0;i<freq_itemsets.size();++i) {
-        //LOG(DEBUG) << "=========================";
         s = freq_itemsets[i][0].as<const char*>();
-        //LOG(DEBUG)  << "txn: " << s << " vs. " << txn->protocol;
         if(s && strcmp(s,"") && strcmp(s,txn->protocol)) 
             continue;
 
         s = freq_itemsets[i][1].as<const char*>();
-        //LOG(DEBUG)  << "txn: " << s << " vs. " << txn->dst_host;
         if(s && strcmp(s,"") && strcmp(s,txn->dst_host))
             continue;
 
         d = freq_itemsets[i][2].as<u_int16_t>();
-        //LOG(DEBUG)  << "txn: " << d << " vs. " << txn->dst_port;
         if(d!=0 && d != txn->dst_port) 
             continue;
 
         s = freq_itemsets[i][3].as<const char*>();
-        //LOG(DEBUG)  << "txn: " << s << " vs. " << txn->src_host;
         if(s && strcmp(s,"") && strcmp(s,txn->src_host))
             continue;
 
         d = freq_itemsets[i][4].as<u_int16_t>();
-        //LOG(DEBUG)  << "txn: " << d << " vs. " << txn->src_port;
         if(d!=0 && d != txn->src_port)
             continue;
 
             txn->src_port = result[i][6].as<u_int16_t>();
 
             if(txn_subsets_itemsets(freq_itemsets,txn)) {
-                //LOG(DEBUG)  << "Deleting txn " << ++x << " out of  " << result.size() << " " << txn->src_host << ": "
-                //            << txn->src_port << " -> " 
-                //            << txn->dst_host << ":" << txn->dst_port;
                 delete txn;
                 continue;
             } else