Clean up app_mysql's application entry points to properly parse arguments
authorMatthew Jordan <mjordan@digium.com>
Wed, 2 Jan 2013 22:19:32 +0000 (22:19 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 2 Jan 2013 22:19:32 +0000 (22:19 +0000)
commit473ec0b1c3d05596c8b00d39aa00e4dfafe7d387
tree7562b348e490a7f2a5767d46197e9a9966a1320b
parent89f9e077d7fce488c1cc0644cc152a6c101aae02
Clean up app_mysql's application entry points to properly parse arguments

When parsing arguments, application entry points should not attempt to
directly modify the parameters to the function. This patch properly duplicates
the passed in parameters before attempting to parse them.

(issue ASTERISK-20658)
Reported by: wdoekes
patches:
  issueA20658_sanitize_app_mysql.patch uploaded by wdoekes (license 5674)

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