diff options
author | Paul Donohue <git@PaulSD.com> | 2013-05-24 14:29:41 -0400 |
---|---|---|
committer | Paul Donohue <git@PaulSD.com> | 2013-05-24 14:29:41 -0400 |
commit | 089c664bad20ca39e4ee817bdc24bce196404332 (patch) | |
tree | 5fe0000c583fc71d7d2b21b876b9c49e1ec9af0e /src/mod_ping.erl | |
parent | Merge pull request #67 from anton-ryzhov/config_example (diff) |
Fix a bug when reading tuples from config
If the config contains a tuple of integers (for example, if a bind IP
address is specified) then strings_to_binary() calls tuple_to_list()
followed by strings_to_binary(), which then calls list_to_binary()
because the list looks like a string. Then list_to_tuple() is called on
the returned binary, causing a crash.
This patch corrects the problem by calling strings_to_binary1() instead,
which ensures that the value that is passed into list_to_tuple() is a
list.
Diffstat (limited to 'src/mod_ping.erl')
0 files changed, 0 insertions, 0 deletions