res_format_attr_opus: Fix crash when fmtp contains spaces.
authorJoshua Colp <jcolp@digium.com>
Tue, 15 Nov 2016 00:18:21 +0000 (00:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 8 Dec 2016 11:47:30 +0000 (11:47 +0000)
commit5c89604a32bff8682587dd67d9cf67a9a2c70598
tree6c807f2aa2ac65abf67bb3f9c1165d9c200d4c45
parent1067b9add3784c5873ca701bcf24b7bc2844894f
res_format_attr_opus: Fix crash when fmtp contains spaces.

When an opus offer or answer was received that contained an
fmtp line with spaces between the attributes the module would
fail to properly parse it and crash due to recursion.

This change makes the module handle the space properly and
also removes the recursion requirement.

ASTERISK-26579

Change-Id: I01f53e5d9fa9f1925a7365f8d25071b5b3ac2dc3
res/res_format_attr_opus.c