Merged revisions 34400 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Fri, 16 Jun 2006 03:38:24 +0000 (03:38 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 16 Jun 2006 03:38:24 +0000 (03:38 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r34400 | file | 2006-06-16 00:37:05 -0300 (Fri, 16 Jun 2006) | 2 lines

Zero out a declared structure so as to not crash if it contains invalid data (reported by Qwell on #asterisk-dev)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34401 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 9a703a0..82ddfbf 100644 (file)
@@ -9514,6 +9514,7 @@ static int iax2_devicestate(void *data)
        struct iax2_peer *p;
        int res = AST_DEVICE_INVALID;
 
+       memset(&pds, 0, sizeof(pds));
        parse_dial_string(tmp, &pds);
        if (ast_strlen_zero(pds.peer))
                return res;