]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 586: correct application of fxAssert() against ECM blocking variables
authorLee Howard <faxguy@howardsilvan.com>
Thu, 28 Oct 2004 16:14:17 +0000 (16:14 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Thu, 28 Oct 2004 16:14:17 +0000 (16:14 +0000)
faxd/Class1.c++

index e9244f065841ca5c176d80726dab7ad40dfddb37..12c1edfc70e01c4e0646dd208f20f1572a2160e3 100644 (file)
@@ -98,9 +98,9 @@ Class1Modem::Class1Modem(FaxServer& s, const ModemConfig& c)
     ecmFrame = (u_char*) malloc(fs + 4);
     fxAssert(ecmFrame != NULL, "ECM procedure error (frame).");
     ecmBlock = (u_char*) malloc((fs + 4) * 256);
-    fxAssert(ecmFrame != NULL, "ECM procedure error (block).");
+    fxAssert(ecmBlock != NULL, "ECM procedure error (block).");
     ecmStuffedBlock = (u_char*) malloc(fs == 256 ? 83000 : 33000);
-    fxAssert(ecmFrame != NULL, "ECM procedure error (stuffed block).");
+    fxAssert(ecmStuffedBlock != NULL, "ECM procedure error (stuffed block).");
     gotCTRL = false;
 }