[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kioslave/pop3
From: Michael Haeckel <haeckel () kde ! org>
Date: 2002-03-07 20:09:02
[Download RAW message or body]
kdebase/kioslave/pop3 pop3.cc,1.137,1.138
Author: haeckel
Thu Mar 7 21:09:01 CET 2002
In directory office:/tmp/cvs-serv6679
Modified Files:
pop3.cc
Log Message:
Don't crash with SIGPIPE if the server refuses the connection.
diff -u -3 -p -r1.137 pop3.cc
--- pop3.cc 2002/03/01 09:51:45 1.137
+++ pop3.cc 2002/03/07 20:05:08
@@ -275,6 +275,8 @@ bool POP3Protocol::sendCommand(const cha
* argument may be up to 40 characters long.
*/
+ if (!isConnectionValid()) return false;
+
char *cmdrn = new char[strlen(cmd) + 3];
sprintf(cmdrn, "%s\r\n", (cmd) ? cmd : "");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic