Assume EXTCMD is set when GZ or BZ2 is active

This commit is contained in:
Michiel Broek 2006-02-01 20:51:34 +00:00
parent df7661b941
commit e9379b22dc
2 changed files with 7 additions and 12 deletions

View File

@ -7,6 +7,9 @@ v0.83.11 28-Jan-2006
will completly restart the connection with that remote. will completly restart the connection with that remote.
Made several functions multithread aware (still not Ok). Made several functions multithread aware (still not Ok).
mbcico:
Assume EXTCMD is set when GZ or BZ2 is active.
v0.83.10 25-Jan-2006 - 28-Jan-2006 v0.83.10 25-Jan-2006 - 28-Jan-2006

View File

@ -2085,23 +2085,15 @@ void binkp_set_comp_state(void)
#ifdef HAVE_BZLIB_H #ifdef HAVE_BZLIB_H
Syslog('b', "Binkp: BZ2 they=%s we=%s", opstate[bp.BZ2they], opstate[bp.BZ2we]); Syslog('b', "Binkp: BZ2 they=%s we=%s", opstate[bp.BZ2they], opstate[bp.BZ2we]);
if ((bp.BZ2they == Want) && (bp.BZ2we == Want)) { if ((bp.BZ2they == Want) && (bp.BZ2we == Want)) {
if (bp.EXTCMDwe == Active) { Syslog('+', "Binkp: BZ2 compression active");
Syslog('+', "Binkp: BZ2 compression active"); bp.BZ2we = bp.BZ2they = Active;
bp.BZ2we = bp.BZ2they = Active;
} else {
Syslog('!', "Binkp: received BZ2 option without EXTCMD option");
}
} }
#endif #endif
#ifdef HAVE_ZLIB_H #ifdef HAVE_ZLIB_H
Syslog('b', "Binkp: GZ they=%s we=%s", opstate[bp.GZthey], opstate[bp.GZwe]); Syslog('b', "Binkp: GZ they=%s we=%s", opstate[bp.GZthey], opstate[bp.GZwe]);
if ((bp.GZthey == Want) && (bp.GZwe == Want)) { if ((bp.GZthey == Want) && (bp.GZwe == Want)) {
if (bp.EXTCMDwe == Active) { bp.GZwe = bp.GZthey = Active;
bp.GZwe = bp.GZthey = Active; Syslog('+', "Binkp: GZ compression active");
Syslog('+', "Binkp: GZ compression active");
} else {
Syslog('!', "Binkp: received GZ option without EXTCMD option");
}
} }
#endif #endif