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.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@359558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.15
Russell Bryant 13 years ago
parent ba3230cc45
commit 167dd53f80

@ -8294,9 +8294,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));

Loading…
Cancel
Save