If a sender sent a DCS signal that was too-short we were not stopping and
requiring it to be resent. This fixes that.
Changelog since HylaFAX 4.3.0
+* fix error of accepting too-short of DCS signal (20 Jul 2006)
* fix faxgetty hang in ECM due to missing timeouts (20 Jul 2006)
* fix indicator when 100% non-zero TCF data is received (20 Jul 2006)
* do Class1SwitchingCmd before sending MCF after PPS-NULL (20 Jul 2006)
recvTSI(decodeTSI(s, frame));
break;
case FCF_DCS:
+ if (frame.getFrameDataLength() < 4) return (false); // minimum acceptable DCS frame size
processDCSFrame(frame);
break;
}
void
Class1Modem::processDCSFrame(const HDLCFrame& frame)
{
- if (frame.getFrameDataLength() < 4) return; // minimum acceptable DCS frame size
FaxParams dcs_caps = frame.getDIS(); // NB: really DCS
if (dcs_caps.isBitEnabled(FaxParams::BITNUM_FRAMESIZE_DCS)) frameSize = 64;