]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 232: fix HDLCFrame copying which causes errors where CTC is received as PPS
authorLee Howard <faxguy@howardsilvan.com>
Mon, 30 Jan 2006 21:20:06 +0000 (21:20 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Mon, 30 Jan 2006 21:20:06 +0000 (21:20 +0000)
CHANGES
faxd/Class1Recv.c++

diff --git a/CHANGES b/CHANGES
index b1c24462ece45433717bb80a2e781ea3b28488bc..47c92c6361b24b31d51134f006bd71fa7d43df82 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@
 
 Changelog
 
+* fix segfault on some compilers where the rare occassion
+  of receiving CTC instead of PPS occurs (30 Jan 2006)
 * fix rare occassion where TCF fails following an unexpected
   receipt of prologue frames (30 Jan 2006)
 
index f5edce67f79d6d52424b56e065416e6f528d163e..f6c164ba2dfe875f0661fbcc831fe9399b2ed999 100644 (file)
@@ -1416,7 +1416,7 @@ Class1Modem::recvPageECMData(TIFF* tif, const Class2Params& params, fxStr& emsg)
                                        protoTrace("RECV sent fourth PPR");
                                    } else {
                                        // we already got the signal
-                                       rtnframe = ppsframe;
+                                       rtnframe.put(ppsframe, ppsframe.getLength());
                                    }
                                    pprcnt = 0;
                                    if (signalRcvd != 0 || recvFrame(rtnframe, FCF_RCVR, conf.t2Timer)) {