temporary workaround for seg

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4747 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-03-23 03:09:03 +00:00
parent 8607209400
commit 848f8d43f8
1 changed files with 4 additions and 0 deletions

View File

@ -259,6 +259,10 @@ int tport_recv_dgram(tport_t *self)
msg = self->tp_msg; msg = self->tp_msg;
ai = msg_addrinfo(msg); ai = msg_addrinfo(msg);
if (!ai)
return -1;
from = (su_sockaddr_t *)ai->ai_addr, fromlen = (socklen_t)(ai->ai_addrlen); from = (su_sockaddr_t *)ai->ai_addr, fromlen = (socklen_t)(ai->ai_addrlen);
n = su_vrecv(self->tp_socket, iovec, veclen, 0, from, &fromlen); n = su_vrecv(self->tp_socket, iovec, veclen, 0, from, &fromlen);