Fix datatype_read test.

This commit is contained in:
Roger A. Light
2019-02-12 11:34:45 +00:00
parent bb914b985c
commit b6dc4e5780
+1
View File
@@ -130,6 +130,7 @@ int packet__read_string(struct mosquitto__packet *packet, char **str, int *lengt
if(mosquitto_validate_utf8(*str, *length)){
mosquitto__free(*str);
*str = NULL;
*length = -1;
return MOSQ_ERR_MALFORMED_UTF8;
}