[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: fixed bug in korn - want to submit patch
From:       Eugen =?iso-8859-1?q?D=FCck?= <Eugen () Dueck ! org>
Date:       2002-02-23 20:20:20
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Just attach the patch, we'll apply it.
>
> Thanks for your contribution,

So here it is...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8d/mE9ode9k9xOOMRAh3KAKCE6Gb2aV/s8Ft5MyFGn2Hg6CurCgCdGbPo
QN5hxLLEz374vsxldDEAeV0=
=Y1e6
-----END PGP SIGNATURE-----

["pop.cpp.diff" (text/x-diff)]

Index: pop.cpp
===================================================================
RCS file: /home/kde/kdenetwork/korn/pop.cpp,v
retrieving revision 1.8
diff -u -3 -p -r1.8 pop.cpp
--- pop.cpp	2000/10/05 20:31:49	1.8
+++ pop.cpp	2002/02/23 19:30:29
@@ -54,13 +54,14 @@ void KPop3Drop::recheck()
 
 	if( !ret ) {
 		_valid = false;
+		if( _pop->IsOpen() ) _pop->Close();
 		return;
 	}
 
 	//kdDebug() << "POP3: user = " << _user << endl;
 	ret = _pop->User(_user.ascii());
 
-	if( ret == '-' ) {
+	if( ( ret == '-' ) || ( !ret ) ){
 		_valid = false;
 		_pop->Quit();
 		_pop->Close();
@@ -71,7 +72,7 @@ void KPop3Drop::recheck()
 	//kdDebug() << "POP3: password = " << _password << endl;
 	ret = _pop->Pass(_password.ascii());
 
-	if( ret == '-' ) {
+	if( ( ret == '-' ) || ( !ret ) ){
 		_valid = false;
 		_pop->Quit();
 		_pop->Close();
@@ -81,7 +82,7 @@ void KPop3Drop::recheck()
 
 	ret = _pop->Stat();
 
-	if( ret == '-' ) {
+	if( ( ret == '-' ) || ( !ret ) ){
 		_valid = false;
 		_pop->Quit();
 		_pop->Close();

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic