Check-in [d639e0a548]
Overview
Comment:Patch per Matthias Bernhardt.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d639e0a5482de86a211063635e745ca94957c5c7
User & Date: rmiller on 2012-01-09 23:12:36
Other Links: manifest | tags
Context
2012-01-10
22:14
few minor cosmetic changes Leaf check-in: 7c39ff9950 user: rmiller tags: trunk
2012-01-09
23:12
Patch per Matthias Bernhardt. check-in: d639e0a548 user: rmiller tags: trunk
2011-03-06
23:30
remove pbl_set_verdict. It was a waste of code lines. check-in: 49947c3157 user: rmiller tags: trunk
Changes

Modified packetbl.c from [194fb5b236] to [8779e8d279].

   177    177   	currtime = time(NULL);
   178    178   
   179    179   	ipaddr_check = packet_info_to_ip(ip);
   180    180   	if (packet_cache_len > 0) {
   181    181   		cache_hash = packet_cache_hash(ip) % packet_cache_len;
   182    182   	}
   183    183   	buf = get_ip_string(&ip);
   184         -	if (cache_hash>0 && cache_hash<packet_cache_len && packet_cache != NULL) {
          184  +	if (packet_cache != NULL) {
   185    185   		if (packet_cache[cache_hash].ipaddr==ipaddr_check 
   186    186   				&& packet_cache[cache_hash].expires>currtime) {
   187    187   			retval = packet_cache[cache_hash].action;
   188    188   			switch (retval) {
   189    189   				case NF_DROP:
   190    190   					actionstr="reject";
   191    191   					statistics.cachereject++;