Fix that global listener count could be negative under certain circumstances
This fixes a bug that could cause the global listener count of Icecast to be negative. This was caused due to wrong handling of errors in the format_prepare_headers function. Fixes: #2199 Thanks a lot to Simeon Völkel (0xBD4E031CDB4043C9) for reporting and investigating the bug.
Showing with 5 additions and 1 deletion