Changed compression init
This commit is contained in:
parent
6e7840fcac
commit
0bc438e2fd
@ -20,6 +20,8 @@ v0.71.4 12-Aug-2005
|
||||
way how FTN kludges are translated to RFC headers.
|
||||
Dropped support for newsgroup distribution.
|
||||
In tic processing changed pointer type for seenby lists.
|
||||
Fixed running out of file descriptors when there are lots of
|
||||
bad mailpackets.
|
||||
|
||||
mbsebbs:
|
||||
Fixed headerlines for posting news.
|
||||
@ -28,6 +30,10 @@ v0.71.4 12-Aug-2005
|
||||
mbnntp:
|
||||
Improved charset detection.
|
||||
|
||||
mbcico:
|
||||
Changed compression init functions to fix mysterious crashes
|
||||
on some systems.
|
||||
|
||||
mbsetup:
|
||||
Dropped support for newsgroup distribution.
|
||||
|
||||
|
@ -1267,10 +1267,7 @@ TrType binkp_receiver(void)
|
||||
/*
|
||||
* Receive stream compressed data
|
||||
*/
|
||||
Syslog('b', "enter receive stream");
|
||||
|
||||
if (z_idata == NULL) {
|
||||
Syslog('b', "decompress_init begins");
|
||||
if (decompress_init(bp.rmode)) {
|
||||
Syslog('+', "Binkp: can't init decompress");
|
||||
bp.RxState = RxDone;
|
||||
@ -1286,7 +1283,7 @@ Syslog('b', "decompress_init begins");
|
||||
Syslog('+', "Binkp: decompress %s error %d", bp.rname, rc1);
|
||||
bp.RxState = RxDone;
|
||||
return Failure;
|
||||
} else {
|
||||
// } else {
|
||||
// Syslog('b', "Binkp: %d bytes of data decompressed to %d", nput, zavail);
|
||||
}
|
||||
if (zavail != 0 && fwrite(zbuf, zavail, 1, bp.rxfp) < 1) {
|
||||
@ -2862,14 +2859,11 @@ int decompress_init(int type)
|
||||
#endif
|
||||
#ifdef HAVE_ZLIB_H
|
||||
case CompGZ: {
|
||||
Syslog('b', "init start %d", sizeof(z_stream));
|
||||
z_idata = calloc(1, sizeof(z_stream));
|
||||
Syslog('b', "data calloc done");
|
||||
if (z_idata == NULL) {
|
||||
Syslog('+', "Binkp: decompress_init: not enough memory (%lu needed)", sizeof(z_stream));
|
||||
return Z_MEM_ERROR;
|
||||
}
|
||||
Syslog('b', "begin inflateInit");
|
||||
return inflateInit((z_stream *)z_idata);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user