forked from Mirrors/freeswitch
Tue May 12 13:04:33 CDT 2009 Pekka Pessi <first.last@nokia.com>
* tport_type_udp.c: tport_check_trunc() cleaned code Ignore-this: b39558360afb657325a4615d0919baaa Coverity issue. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13327 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
27c334d8e0
commit
0106f699e6
@ -1 +1 @@
|
||||
Fri May 15 10:53:11 CDT 2009
|
||||
Fri May 15 10:54:18 CDT 2009
|
||||
|
@ -254,19 +254,15 @@ static void tport_check_trunc(tport_t *tp, su_addrinfo_t *ai)
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user