Remove duplicate UTF-8 check

All strings are already validated in packet__read_string().
pull/1658/head
Roger A. Light 6 years ago
parent efb21fb09c
commit 0b7b7389b0

@ -177,11 +177,6 @@ int handle__publish(struct mosquitto_db *db, struct mosquitto *context)
}
}
}
if(mosquitto_validate_utf8(topic, slen) != MOSQ_ERR_SUCCESS){
log__printf(NULL, MOSQ_LOG_INFO, "Client %s sent topic with invalid UTF-8, disconnecting.", context->id);
mosquitto__free(topic);
return 1;
}
#ifdef WITH_BRIDGE
rc = bridge__remap_topic_in(context, &topic);

Loading…
Cancel
Save