[Freeswitch-svn] [commit] r4747 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport
Freeswitch SVN
anthm at freeswitch.org
Thu Mar 22 23:09:03 EDT 2007
Author: anthm
Date: Thu Mar 22 23:09:03 2007
New Revision: 4747
Modified:
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/tport/tport_type_udp.c
Log:
temporary workaround for seg
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 Thu Mar 22 23:09:03 2007
@@ -259,6 +259,10 @@
msg = self->tp_msg;
ai = msg_addrinfo(msg);
+
+ if (!ai)
+ return -1;
+
from = (su_sockaddr_t *)ai->ai_addr, fromlen = (socklen_t)(ai->ai_addrlen);
n = su_vrecv(self->tp_socket, iovec, veclen, 0, from, &fromlen);
More information about the Freeswitch-svn
mailing list