freebsd-ports/net/opentracker/files/patch-ot_accesslist.c
Olli Hauer cec10ac84f - fix whitelist bug
Opentracker used to need 40 extra characters at the end of your
 whitelist/blacklist file otherwise the last info_hash won't be loaded.

 Thanks to Nerius Landys for the patch!

PR:		151974
Submitted by:	Chris Rees <utisoft _at_ gmail.com> (maintainer)
Approved by:	glarkin (mentor, implicit)
2010-11-07 01:58:23 +00:00

12 lines
400 B
C

--- ot_accesslist.c.orig 2010-11-04 17:34:00.000000000 -0700
+++ ot_accesslist.c 2010-11-04 17:51:33.000000000 -0700
@@ -54,8 +54,7 @@
return;
}
- /* No use to scan if there's not enough room for another full info_hash */
- map_end = map + maplen - 40;
+ map_end = map + maplen;
read_offs = map;
/* We do ignore anything that is not of the form "^[:xdigit:]{40}[^:xdigit:].*" */