Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/handle_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,9 @@ static int read_and_verify_client_credentials_from_packet(struct mosquitto *cont
if(username_flag){
rc = set_username_from_packet(context, username, clientid);
if(rc != MOSQ_ERR_SUCCESS){
if(context->protocol == mosq_p_mqtt5){
send__connack(context, 0, MQTT_RC_MALFORMED_PACKET, NULL);
}
return rc;
}
}else{
Expand Down