]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Zero out a declared structure so as to not crash if it contains invalid data (reporte...
authorJoshua Colp <jcolp@digium.com>
Fri, 16 Jun 2006 03:37:05 +0000 (03:37 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 16 Jun 2006 03:37:05 +0000 (03:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@34400 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 8b24167621e930f64c8bebc1c6c2fb25c47b825b..0b668730d321e0f863cc045cff7f67792e0eb91c 100644 (file)
@@ -9335,6 +9335,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 (!pds.peer || ast_strlen_zero(pds.peer))
                return res;