From 040207607ac43f1a03a8b030edb46538a12ca00e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Fri, 12 Nov 2010 18:55:10 +0100
Subject: Added missing break statements in case switch.


diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp
index 49726ca..66fe23e 100644
--- a/Swiften/Client/CoreClient.cpp
+++ b/Swiften/Client/CoreClient.cpp
@@ -184,26 +184,37 @@ void CoreClient::handleSessionFinished(boost::shared_ptr<Error> error) {
 			switch(verificationError->getType()) {
 				case CertificateVerificationError::UnknownError: 
 					clientError = ClientError(ClientError::UnknownCertificateError);
+					break;
 				case CertificateVerificationError::Expired: 
 					clientError = ClientError(ClientError::CertificateExpiredError);
+					break;
 				case CertificateVerificationError::NotYetValid: 
 					clientError = ClientError(ClientError::CertificateNotYetValidError);
+					break;
 				case CertificateVerificationError::SelfSigned: 
 					clientError = ClientError(ClientError::CertificateSelfSignedError);
+					break;
 				case CertificateVerificationError::Rejected: 
 					clientError = ClientError(ClientError::CertificateRejectedError);
+					break;
 				case CertificateVerificationError::Untrusted: 
 					clientError = ClientError(ClientError::CertificateUntrustedError);
+					break;
 				case CertificateVerificationError::InvalidPurpose: 
 					clientError = ClientError(ClientError::InvalidCertificatePurposeError);
+					break;
 				case CertificateVerificationError::PathLengthExceeded: 
 					clientError = ClientError(ClientError::CertificatePathLengthExceededError);
+					break;
 				case CertificateVerificationError::InvalidSignature: 
 					clientError = ClientError(ClientError::InvalidCertificateSignatureError);
+					break;
 				case CertificateVerificationError::InvalidCA: 
 					clientError = ClientError(ClientError::InvalidCAError);
+					break;
 				case CertificateVerificationError::InvalidServerIdentity:
 					clientError = ClientError(ClientError::InvalidServerIdentityError);
+					break;
 			}
 		}
 		actualError = boost::optional<ClientError>(clientError);
-- 
cgit v0.10.2-6-g49f6