esl / escalus

An XMPP client library in Erlang for conveniently testing XMPP servers
Apache License 2.0
129 stars 76 forks source link

Fix CT stanza log printing #178

Closed arkgil closed 6 years ago

arkgil commented 6 years ago

exml:to_pretty_iolist/1 sometimes returns a binary not wrapped in a list. This binary was later provided to list_to_binary/1 which caused a crash. The solution was to replace call to list_to_binary/1 with iolist_to_binary/1 which correctly deals with bare binaries.