changeset 27462:1bbed9fd046b

I think we can assume that read() isn't going to read more than we tell it to
author Mark Doliner <mark@kingant.net>
date Mon, 06 Jul 2009 07:26:12 +0000
parents c4e5ba03ff73
children f541583e31bd
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Mon Jul 06 06:03:20 2009 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Mon Jul 06 07:26:12 2009 +0000
@@ -2087,15 +2087,6 @@
 		return;
 	}
 
-	if (n + session->rxoff > session->rxsize) {
-		purple_debug_info("msim_input_cb", "received %d bytes, pushing rxoff to %d, over buffer size of %d\n",
-				n, n + session->rxoff, session->rxsize);
-		purple_connection_error_reason (gc,
-			PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
-			_("Read buffer full (2)"));
-		return;
-	}
-
 	/* Null terminate */
 	purple_debug_info("msim", "msim_input_cb: going to null terminate "
 			"at n=%d\n", n);