ARI: Fixed crash that occurred when updating a bridge when the optional query paramet...
authorAshley Sanders <asanders@digium.com>
Tue, 20 Jan 2015 17:15:54 +0000 (17:15 +0000)
committerAshley Sanders <asanders@digium.com>
Tue, 20 Jan 2015 17:15:54 +0000 (17:15 +0000)
commit804ab70f9d99192e34b2f6e74590e24e6490f114
tree6548e765f75eea5fa42355082f76cbd05c0a4dd5
parente4738a59eb7c3b55b096902967cea31e8f842057
ARI: Fixed crash that occurred when updating a bridge when the optional query parameter 'name' was not supplied.

Prior to this changeset, posting to the: /ari/bridges/{bridgeId} endpoint without specifying a value for the [name] query parameter, would crash Asterisk if the bridge you are attempting to create (or update) had the same ID as an existing bridge. The internal mechanism of the POST operation interpreted a null value for name, thus resulting in an error condition that crashed Asterisk.

ASTERISK-24560 #close
Reported By: Kinsey Moore

Review: https://reviewboard.asterisk.org/r/4349/
........

Merged revisions 430818 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@430820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/ari/resource_bridges.c