mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user