[evolution-data-server] Bug 599879 - Fix NULL return without exception on krb5-auth-dialog failure



commit 14b5de1aa1538daaa9e9942e2b42b23f90c54216
Author: David Woodhouse <David Woodhouse intel com>
Date:   Mon Jun 14 11:57:22 2010 +0100

    Bug 599879 - Fix NULL return without exception on krb5-auth-dialog failure

 camel/camel-sasl-gssapi.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/camel/camel-sasl-gssapi.c b/camel/camel-sasl-gssapi.c
index 64ddce9..5f4de93 100644
--- a/camel/camel-sasl-gssapi.c
+++ b/camel/camel-sasl-gssapi.c
@@ -318,11 +318,11 @@ sasl_gssapi_challenge (CamelSasl *sasl,
 		default:
 			if (major == (OM_uint32)GSS_S_FAILURE &&
 			    (minor == (OM_uint32)KRB5KRB_AP_ERR_TKT_EXPIRED ||
-			     minor == (OM_uint32)KRB5KDC_ERR_NEVER_VALID)) {
-				if (send_dbus_message (service->url->user))
+			     minor == (OM_uint32)KRB5KDC_ERR_NEVER_VALID) &&
+			    send_dbus_message (service->url->user))
 					goto challenge;
-			} else
-				gssapi_set_exception (major, minor, ex);
+
+			gssapi_set_exception (major, minor, ex);
 			return NULL;
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]