inn/storage/cnfs/cnfs.c
Igor Timkin
ivt at newsfeed.gamma.ru
Thu Dec 21 19:48:17 UTC 2000
maxartsize may be equal to 0 (unlimited article size).
--- inn/storage/cnfs/cnfs.c Tue Nov 14 03:15:20 2000
+++ inn/storage/cnfs/cnfs.c.NEW Thu Dec 21 22:28:36 2000
@@ -1302,7 +1302,8 @@
}
}
/* checking the bitmap to ensure cah.size is not broken was dropped */
- if ((innconf->cnfscheckfudgesize != 0) && (ntohl(cah.size) > innconf->maxartsize + innconf->cnfscheckfudgesize)) {
+ if (innconf->cnfscheckfudgesize != 0 && innconf->maxartsize != 0 &&
+ (ntohl(cah.size) > innconf->maxartsize + innconf->cnfscheckfudgesize)) {
char buf1[24], buf2[24], buf3[24];
strcpy(buf1, CNFSofft2hex(cycbuff->free, FALSE));
strcpy(buf2, CNFSofft2hex(middle, FALSE));
More information about the inn-patches
mailing list