mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-20 21:41:40 +08:00
Fix datatype_read test.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user