Merged revisions 34400 via svnmerge from

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
1.4
Joshua Colp 20 years ago
parent 96bbc5e741
commit 9ebb7c35a2

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

Loading…
Cancel
Save