Changeset 1264
- Timestamp:
- 05/12/07 12:29:49 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/sqlhandler-postgres/sqlhandler-postgres.cpp
r904 r1264 762 762 "' password = '" + m_PGPass +"'"; 763 763 764 if ( m_PGOptions.size() > 0)765 ConnectString += m_PGOptions;764 if ( m_PGOptions.size() > 0 ) 765 ConnectString += m_PGOptions; 766 766 767 767 nepenthes/trunk/modules/submit-norman/submit-norman.conf.dist
r674 r1264 2 2 { 3 3 // this is the adress where norman sandbox reports will be sent 4 email " malware@mac.com";5 urls ("http:// sandbox.norman.no/live_4.html",4 email "nsbx@mwcollect.org"; 5 urls ("http://www.norman.com/microsites/nsic/Submit/Special/45773/", 6 6 "http://luigi.informatik.uni-mannheim.de/submit.php?action=verify"); 7 7 nepenthes/trunk/nepenthes-core/src/SocketManager.cpp
r615 r1264 274 274 } 275 275 276 int32_t socketcounter, socketmax; 277 socketcounter=0; 278 socketmax = m_Sockets.size(); 279 276 280 int32_t iPollRet = poll(polls,i,50); 277 281 … … 280 284 // read sockets 281 285 i=0; 282 for (itSocket = m_Sockets.begin();itSocket != m_Sockets.end() ; itSocket++)286 for (itSocket = m_Sockets.begin();itSocket != m_Sockets.end(), socketcounter < socketmax ; itSocket++, socketcounter++) 283 287 { 284 288 if ( (*itSocket)->isPolled() == true ) … … 304 308 // write sockets 305 309 i=0; 306 for (itSocket = m_Sockets.begin();itSocket != m_Sockets.end(); itSocket++) 310 socketcounter=0; 311 for (itSocket = m_Sockets.begin();itSocket != m_Sockets.end(), socketcounter < socketmax; itSocket++, socketcounter++) 307 312 { 308 313 if ( (*itSocket)->isPolled() == true ) … … 332 337 // accept new, non udp clients as udp does not accept() 333 338 i=0; 334 for (itSocket = m_Sockets.begin();itSocket != m_Sockets.end(); itSocket++) 339 socketcounter=0; 340 for (itSocket = m_Sockets.begin();itSocket != m_Sockets.end(), socketcounter < socketmax; itSocket++, socketcounter++) 335 341 { 336 342
