Check-in [d639e0a548]
Overview
SHA1:d639e0a5482de86a211063635e745ca94957c5c7
Date: 2012-01-09 23:12:36
User: rmiller
Comment:Patch per Matthias Bernhardt.
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2012-01-10
22:14
[7c39ff9950] Leaf: few minor cosmetic changes (user: rmiller, tags: trunk)
2012-01-09
23:12
[d639e0a548] Patch per Matthias Bernhardt. (user: rmiller, tags: trunk)
2011-03-06
23:30
[49947c3157] remove pbl_set_verdict. It was a waste of code lines. (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++;