[svn-commits] igorg: branch 1.8 r339884 - /branches/1.8/channels/chan_unistim.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Oct 8 10:45:24 CDT 2011


Author: igorg
Date: Sat Oct  8 10:45:20 2011
New Revision: 339884

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=339884
Log:

Fix segfault in Unistim channel

(closes issue ASTERISK-18638)
Reported by: jonnt


Modified:
    branches/1.8/channels/chan_unistim.c

Modified: branches/1.8/channels/chan_unistim.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_unistim.c?view=diff&rev=339884&r1=339883&r2=339884
==============================================================================
--- branches/1.8/channels/chan_unistim.c (original)
+++ branches/1.8/channels/chan_unistim.c Sat Oct  8 10:45:20 2011
@@ -882,6 +882,7 @@
 
 	memcpy(&s->sin, addr_from, sizeof(struct sockaddr_in));
 	get_to_address(unistimsock, &s->sout);
+	sout.sin_family = AF_INET;
 	if (unistimdebug) {
 		ast_verb(0, "Creating a new entry for the phone from %s received via server ip %s\n",
 			 ast_inet_ntoa(addr_from->sin_addr), ast_inet_ntoa(s->sout.sin_addr));




More information about the svn-commits mailing list