Skip to content

Commit

Permalink
Incorrect return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Ambrose committed Jul 17, 2023
1 parent d9b03ec commit 1b90892
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/v5/mqtt3_to_mqtt5_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,8 @@ static uint16_t s_aws_mqtt_client_connection_5_publish(

/* check qos */
if (qos < 0 || qos > AWS_MQTT_QOS_EXACTLY_ONCE) {
return aws_raise_error(AWS_ERROR_MQTT_INVALID_QOS);
aws_raise_error(AWS_ERROR_MQTT_INVALID_QOS);
return 0;
}

if (!aws_mqtt_is_valid_topic(topic)) {
Expand Down

0 comments on commit 1b90892

Please sign in to comment.