mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-28 23:15:59 +00:00
Fix segfault in Unistim channel
(closes issue ASTERISK-18638) Reported by: jonnt git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@339884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -882,6 +882,7 @@ static struct unistimsession *create_client(const struct sockaddr_in *addr_from)
|
|||||||
|
|
||||||
memcpy(&s->sin, addr_from, sizeof(struct sockaddr_in));
|
memcpy(&s->sin, addr_from, sizeof(struct sockaddr_in));
|
||||||
get_to_address(unistimsock, &s->sout);
|
get_to_address(unistimsock, &s->sout);
|
||||||
|
sout.sin_family = AF_INET;
|
||||||
if (unistimdebug) {
|
if (unistimdebug) {
|
||||||
ast_verb(0, "Creating a new entry for the phone from %s received via server ip %s\n",
|
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));
|
ast_inet_ntoa(addr_from->sin_addr), ast_inet_ntoa(s->sout.sin_addr));
|
||||||
|
|||||||
Reference in New Issue
Block a user