Fixed reading invalid memory if IP list didn't end with a comma