mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-18 10:44:28 +00:00
chan_iax2: Fix use of uninitialized sockaddr_in in try_transfer().
Initialize a struct sockaddr_in in try_transfer() so that the code isn't (potentially) trying to read from it while uninitialized. ........ Merged revisions 359558 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 359559 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@359560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -8300,9 +8300,8 @@ static int try_transfer(struct chan_iax2_pvt *pvt, struct iax_ies *ies)
|
||||
int newcall = 0;
|
||||
char newip[256];
|
||||
struct iax_ie_data ied;
|
||||
struct sockaddr_in new;
|
||||
|
||||
|
||||
struct sockaddr_in new = { 0, };
|
||||
|
||||
memset(&ied, 0, sizeof(ied));
|
||||
if (ies->apparent_addr)
|
||||
memmove(&new, ies->apparent_addr, sizeof(new));
|
||||
|
Reference in New Issue
Block a user