/pidgin/main: 13cf92fa0198: connection: Taking breaks when codin...

Mike Ruprecht <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 13cf92fa0198e8460f59a6569c47bc663bf9a055
Author:	 Mike Ruprecht <[email protected]>
Date:	 2016-05-02 23:17 -0500
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/13cf92fa0198

Description:

connection: Taking breaks when coding helps reduce errors

Actually use break's in the switch/case statement in
purple_connection_g_error().

diffstat:

 libpurple/connection.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (19 lines):

diff --git a/libpurple/connection.c b/libpurple/connection.c
--- a/libpurple/connection.c
+++ b/libpurple/connection.c
@@ -558,12 +558,15 @@ purple_connection_g_error(PurpleConnecti
 		switch (error->code) {
 			case G_TLS_ERROR_UNAVAILABLE:
 				reason = PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT;
+				break;
 			case G_TLS_ERROR_NOT_TLS:
 			case G_TLS_ERROR_HANDSHAKE:
 				reason = PURPLE_CONNECTION_ERROR_ENCRYPTION_ERROR;
+				break;
 			case G_TLS_ERROR_BAD_CERTIFICATE:
 			case G_TLS_ERROR_CERTIFICATE_REQUIRED:
 				reason = PURPLE_CONNECTION_ERROR_CERT_OTHER_ERROR;
+				break;
 			case G_TLS_ERROR_EOF:
 			case G_TLS_ERROR_MISC:
 			default:

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.