diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-06-11 23:01:19 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-06-11 23:01:19 +0000 |
commit | 71b3c9a749b9eb910ea6e5353d3703f93709cb29 (patch) | |
tree | f485880081ccec31d439ba622aaf99d65148d971 /contrib | |
parent | d5298f2a1bef3c648f43387970ad1a6694aa4390 (diff) |
format.c: Fix misuse of hash container function.
The supplied hash function to a container must be idempotent given the
object's key value to figure out which container bucket the object belongs
in. Returning a random number or the current container count is not
idempotent. The "computed hash" value doesn't help find the object later
in those cases.
* Fixed the format_list container to actually be a list since that is how
the container is used. Conceptually, if more than 283 formats were added
to the format_list then odd things may have happened before the fix.
........
Merged revisions 415728 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 415729 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions