This is a fix implemented by Pieter Conradie as described here: https://github.com/LiamBindle/MQTT-C/issues/163