From a8d78224c6ea9b943357902276de7a513d0fbd8d Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Mon, 4 Jun 2012 23:05:28 +0200 Subject: RHEL/Fedora: various updates --- .../kdepim-3.5.13-fix_kio_imap4_infinite_loop.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 redhat/kdepim/kdepim-3.5.13-fix_kio_imap4_infinite_loop.patch (limited to 'redhat/kdepim/kdepim-3.5.13-fix_kio_imap4_infinite_loop.patch') diff --git a/redhat/kdepim/kdepim-3.5.13-fix_kio_imap4_infinite_loop.patch b/redhat/kdepim/kdepim-3.5.13-fix_kio_imap4_infinite_loop.patch new file mode 100644 index 000000000..90e0a1269 --- /dev/null +++ b/redhat/kdepim/kdepim-3.5.13-fix_kio_imap4_infinite_loop.patch @@ -0,0 +1,17 @@ +--- kdepim/kioslaves/imap4/imapparser.cc.ORI 2012-05-27 23:40:50.101207608 +0200 ++++ kdepim/kioslaves/imap4/imapparser.cc 2012-05-27 23:43:23.264547024 +0200 +@@ -277,11 +277,11 @@ + } + cmd = sendCommand (new imapCommand ("AUTHENTICATE", firstCommand.latin1())); + +- while ( true ) ++ int pl = 0; ++ while ( pl != -1 && !cmd->isComplete () ) + { + //read the next line +- while (parseLoop() == 0) ; +- if ( cmd->isComplete() ) break; ++ while ((pl = parseLoop()) == 0) ; + + if (!continuation.isEmpty()) + { -- cgit v1.2.1