]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 599: initialize CallID answer lengths
authorLee Howard <faxguy@howardsilvan.com>
Fri, 30 Sep 2005 00:12:43 +0000 (00:12 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Fri, 30 Sep 2005 00:12:43 +0000 (00:12 +0000)
CHANGES
faxd/ModemConfig.c++

diff --git a/CHANGES b/CHANGES
index 39104d131fc389807b9f2f601ea3ea4deea9991c..b0f019376fb4c1ed3999ed38db3d64d2607fbd21 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@
 
 Changelog for HylaFAX
 
+* fix CallID problems by initializing answer lengths (29 Sep 2005)
 * fix sendfax to allow "#" in the to-name (27 Sep 2005)
 * clean up page sizes and signalling (27 Sep 2005)
 * improve logging when a document is rejected (27 Sep 2005)
index 5730f32db919095aaa12bd16f3172247af460c4f..480bf0a08bfe3bc932b73598f0881901776b13cd 100644 (file)
@@ -701,6 +701,7 @@ ModemConfig::setConfigItem(const char* tag, const char* value)
        if (idConfig.length() < callidIndex+1 && callidIndex != (u_int) -1)
            idConfig.resize(callidIndex+1);
        if (tag[6] == 'p') {
+           idConfig[callidIndex].answerlength = 0;     // we must initialize this
            idConfig[callidIndex].pattern = value;
            configTrace("CallID[%d].pattern = \"%s\"", callidIndex,
                    (const char*)idConfig[callidIndex].pattern);