[Freeswitch-branches] [commit] r4129 - freeswitch/branches/anthonyl/fs-branch/src

Freeswitch SVN anthonyl at freeswitch.org
Mon Feb 5 22:06:42 EST 2007


Author: anthonyl
Date: Mon Feb  5 22:06:42 2007
New Revision: 4129

Modified:
   freeswitch/branches/anthonyl/fs-branch/src/switch_stun.c

Log:
humm, reverting that last change

Modified: freeswitch/branches/anthonyl/fs-branch/src/switch_stun.c
==============================================================================
--- freeswitch/branches/anthonyl/fs-branch/src/switch_stun.c	(original)
+++ freeswitch/branches/anthonyl/fs-branch/src/switch_stun.c	Mon Feb  5 22:06:42 2007
@@ -327,7 +327,7 @@
 
 	for(;;) {
 		bytes = sizeof(buf);
-		if (switch_socket_recvfrom(from_addr, sock, 0, (char *)&buf, sizeof(buf)) != SWITCH_STATUS_SUCCESS) {
+		if (switch_socket_recvfrom(from_addr, sock, 0, (char *)&buf, &bytes) == SWITCH_STATUS_SUCCESS && bytes > 0) {
 			break;
 		}
 



More information about the Freeswitch-branches mailing list