blautenb    2003/10/25 03:30:28

  Modified:    c/src/transformers TXFMCipher.cpp
  Log:
  Fix minor bug with buffered data
  
  Revision  Changes    Path
  1.4       +3 -2      xml-security/c/src/transformers/TXFMCipher.cpp
  
  Index: TXFMCipher.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/transformers/TXFMCipher.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TXFMCipher.cpp    11 Sep 2003 11:11:29 -0000      1.3
  +++ TXFMCipher.cpp    25 Oct 2003 10:30:28 -0000      1.4
  @@ -168,12 +168,13 @@
                                memmove(m_outputBuffer, m_outputBuffer + fill, 
(m_remaining - fill));
   
                        m_remaining -= fill;
  +                     leftToFill -= fill;
                        ret += fill;
                }
   
                // Now do some crypting
   
  -             if (m_complete == false) {
  +             if (m_complete == false && m_remaining == 0) {
   
                        unsigned int sz = input->readBytes(m_inputBuffer, 2048);
                
  
  
  

Reply via email to