Skip to content

Commit

Permalink
Merge branch 'AdapterResubStats' into AdapterConnectionResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Ambrose committed Jul 17, 2023
2 parents 561ef61 + 34d265b commit 6e5e08b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/v5/mqtt3_to_mqtt5_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2190,6 +2190,11 @@ static uint16_t s_aws_mqtt_client_connection_5_subscribe_multiple(
aws_mqtt_suback_multi_fn *on_suback,
void *on_suback_user_data) {

if (topic_filters == NULL || aws_array_list_length(topic_filters) == 0) {
aws_raise_error(AWS_ERROR_INVALID_ARGUMENT);
return 0;
}

struct aws_mqtt_client_connection_5_impl *adapter = impl;

struct aws_mqtt_topic_subscription *subscriptions = topic_filters->data;
Expand Down

0 comments on commit 6e5e08b

Please sign in to comment.