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:
Igor Goncharovskiy
2011-10-08 15:45:20 +00:00
parent 6d6ed815cc
commit 7d3b4d5e80

View File

@@ -882,6 +882,7 @@ static struct unistimsession *create_client(const struct sockaddr_in *addr_from)
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));