kssl: SSL READ ERROR: 5

Per Winkvist per.winkvist at cell-telecom.com
Thu May 16 13:51:01 BST 2002


On Thursday 16 May 2002 14.07, you wrote:
> There is a double delete in ~TCPSlaveBase.  Hopefully that will fix it.  I
> cannot test this so please test.
>
> This may also affect 3.1 code; I haven't checked.

This patch makes the TCPSlaveBase not delete kssl twice, but I still can't 
connect to my banking site. I still get plenty of "SSL READ ERROR 5" (cvs of 
15/5) (Can not connect with early may 3_0 either. But 2.x worked ok)

More traces at eof.

Index: kio/tcpslavebase.cpp
===================================================================
RCS file: /home/kde/kdelibs/kio/kio/tcpslavebase.cpp,v
retrieving revision 1.103
diff -u -3 -p -r1.103 tcpslavebase.cpp
--- kio/tcpslavebase.cpp        2002/04/20 12:44:32     1.103
+++ kio/tcpslavebase.cpp        2002/05/16 12:18:26
@@ -140,7 +140,6 @@ void TCPSlaveBase::doConstructorStuff()
 TCPSlaveBase::~TCPSlaveBase()
 {
     CleanSSL();
-    if (d->usingTLS) delete d->kssl;
     if (d->dcc) delete d->dcc;
     if (d->pkcs) delete d->pkcs;
     delete d;
@@ -396,7 +395,7 @@ void TCPSlaveBase::cleanSSL()
 {
     delete d->cc;

-    if (m_bIsSSL) {
+    if (m_bIsSSL || d->usingTLS) {
         delete d->kssl;
     }
     d->militantSSL = false;

> > The site in question is
> > 	https://www.viainternet.foreningssparbanken.se
> >
> > In the textedit enter something like
> > 	8011122325
> >
> > Make sure the combobox has "Med personlig kod"
> >
> > Then hit the left button "Privatkund" and now you should get the READ
> > ERROR

It gets stuck here:

#5  0x4062f757 in kDebugBackend (nLevel=0, nArea=7029,
    data=0x80a60a8 "SSL READ ERROR: 5\n") at kdebug.cpp:294
#6  0x4062ff59 in kdbgstream::flush() (this=0xbfffc550)
    at /usr/local/qt/include/qmemarray.h:69
#7  0x4006373d in endl (s=@0xbfffc550) at ../kdecore/kdebug.h:110
#8  0x40139cc8 in KSSL::read(void*, int) (this=0xbfffc550,
    buf=0x8096178, len=4096) at ../../kdecore/kdebug.h:123
#9  0x401ad7b4 in KIO::TCPSlaveBase::read(void*, int) (
    this=0xbfffec58, data=0x8096178, len=4096)
    at tcpslavebase.cpp:165
#10 0x411e281f in HTTPProtocol::read(void*, unsigned) (
    this=0xbfffec30, b=0x8096178, nbytes=4096) at http.cc:1559
#11 0x411f769e in HTTPProtocol::readUnlimited() (this=0xbfffec30)
    at /usr/local/qt/include/qmemarray.h:69
#12 0x411fa032 in HTTPProtocol::readBody(bool) (this=0xbfffec30,
    dataInternal=false) at http.cc:3691
#13 0x411d6221 in HTTPProtocol::retrieveContent(bool) (
    this=0xbfffec30, dataInternal=false) at http.cc:340
#14 0x411dd47e in HTTPProtocol::get(KURL const&) (this=0xbfffec30,
    url=@0xbfffea20) at http.cc:987
#15 0x401bcfb7 in KIO::SlaveBase::dispatch(int, QMemArray<char> const&) 
(this=0xbfffec58, command=67, data=@0xbfffea20)
    at slavebase.cpp:806

And here:
#7  0x4062f10b in kDebugBackend (nLevel=0, nArea=7113,
    data=0x80df8a8 "(17574) readBody: bytesReceived: 0 m_iSize: -1 Chunked: 
false\n") at kdebug.cpp:186
#8  0x4062ff59 in kdbgstream::flush() (this=0xbfffc750)
    at /usr/local/qt/include/qmemarray.h:69
#9  0x4006373d in endl (s=@0xbfffc750) at ../kdecore/kdebug.h:110
#10 0x411f9caa in HTTPProtocol::readBody(bool) (this=0xbfffec30,
    dataInternal=false) at ../../kdecore/kdebug.h:123
#11 0x411d6221 in HTTPProtocol::retrieveContent(bool) (
    this=0xbfffec30, dataInternal=false) at http.cc:340
#12 0x411def59 in HTTPProtocol::post(KURL const&) (this=0xbfffec30,
    url=@0xbfffe8c0) at http.cc:1102
#13 0x411f5fd1 in HTTPProtocol::special(QMemArray<char> const&) (
    this=0xbfffec30, data=@0xbfffeb20) at http.cc:3390
#14 0x401bd2ba in KIO::SlaveBase::dispatch(int, QMemArray<char> const&) 
(this=0xbfffec58, command=77, data=@0xbfffeb20)
    at slavebase.cpp:875







More information about the kfm-devel mailing list