Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c
branchadium-1.5.11
changeset 5894 60d7d05396d7
parent 5881 5a62e233115d
child 5896 9db8b48c8cf6
--- a/Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c	Sat Jul 26 10:07:55 2014 -0400
+++ b/Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c	Fri Nov 07 09:24:06 2014 -0600
@@ -644,6 +644,14 @@
 			case errSSLClosedGraceful:
 				result = 0;
 				break;
+			case errSSLClosedNoNotify:
+				result = ((processed > 0) ? processed : 0);
+				purple_debug_info("cdsa", "receive got a premature termination" );
+				break;
+			case errSSLClosedAbort:
+				result = ((processed > 0) ? processed : 0);
+				purple_debug_info("cdsa", "receive got a premature termination" );
+				break;
 			default:
 				result = -1;
 				purple_debug_error("cdsa", "receive failed (%d): %s\n", (int)err, strerror(errno));
@@ -682,6 +690,14 @@
 			case errSSLClosedGraceful:
 				result = 0;
 				break;
+			case errSSLClosedNoNotify:
+				result = ((processed > 0) ? processed : 0);
+				purple_debug_info("cdsa", "send got a premature termination" );
+				break;
+			case errSSLClosedAbort:
+				result = ((processed > 0) ? processed : 0);
+				purple_debug_info("cdsa", "send got a premature termination" );
+				break;
 			default:
 				result = -1;
 				purple_debug_error("cdsa", "send failed (%d): %s\n", (int)err, strerror(errno));