[Freeswitch-svn] [commit] r13327 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/tport
FreeSWITCH SVN
mikej at freeswitch.org
Fri May 15 08:54:55 PDT 2009
Author: mikej
Date: Fri May 15 10:54:54 2009
New Revision: 13327
Log:
Tue May 12 13:04:33 CDT 2009 Pekka Pessi <first.last at nokia.com>
* tport_type_udp.c: tport_check_trunc() cleaned code
Ignore-this: b39558360afb657325a4615d0919baaa
Coverity issue.
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_udp.c
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Fri May 15 10:54:54 2009
@@ -1 +1 @@
-Fri May 15 10:53:11 CDT 2009
+Fri May 15 10:54:18 CDT 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_udp.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_udp.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_udp.c Fri May 15 10:54:54 2009
@@ -254,19 +254,15 @@
if (n != 4)
return;
- for (;;) {
- n = su_recvfrom(tp->tp_socket, buffer, sizeof buffer, MSG_TRUNC,
- (void *)&su, &sulen);
-
- if (n > (ssize_t)sizeof buffer) {
- tp->tp_trunc = 1;
- return;
- }
-
- /* XXX - check that su and tp->tp_addrinfo->ai_addr match */
+ n = su_recvfrom(tp->tp_socket, buffer, sizeof buffer, MSG_TRUNC,
+ (void *)&su, &sulen);
+ if (n > (ssize_t)sizeof buffer) {
+ tp->tp_trunc = 1;
return;
}
+
+ /* XXX - check that su and tp->tp_addrinfo->ai_addr match */
#endif
}
More information about the Freeswitch-svn
mailing list