[Freeswitch-svn] [commit] r13133 - freeswitch/trunk/libs/iksemel/src

FreeSWITCH SVN anthm at freeswitch.org
Thu Apr 23 07:47:07 PDT 2009


Author: anthm
Date: Thu Apr 23 09:47:07 2009
New Revision: 13133

Log:
grr

Modified:
   freeswitch/trunk/libs/iksemel/src/stream.c

Modified: freeswitch/trunk/libs/iksemel/src/stream.c
==============================================================================
--- freeswitch/trunk/libs/iksemel/src/stream.c	(original)
+++ freeswitch/trunk/libs/iksemel/src/stream.c	Thu Apr 23 09:47:07 2009
@@ -512,11 +512,11 @@
 #ifdef HAVE_GNUTLS
 		if (data->flags & SF_SECURE) {
 			len = gnutls_record_recv (data->sess, data->buf, NET_IO_BUF_SIZE - 1);
+			if (len == 0) len = -1;
 		} else
 #endif
 		{
 			len = data->trans->recv (data->sock, data->buf, NET_IO_BUF_SIZE - 1, timeout);
-			if (len == 0) len = -1;
 		}
 		if (len < 0) return IKS_NET_RWERR;
 		if (len == 0) break;



More information about the Freeswitch-svn mailing list